From 31def6a33878b1ca8f5340d30708c853cdafefa1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Jul 2014 22:12:55 +0100 Subject: Add rudimentary support for resizing. - Currently only libnsfb's SDL surface supports resizing. - Flickers like crazy while resizing. Possibly because the SDL surface is not set to use double buffering. - The internal widget library, fbtk, was never intended for this, as such it has no knowledge of how a widget should be positioned with respect to its parent. This means the top level window has to track everything and move them itself. --- framebuffer/framebuffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'framebuffer/framebuffer.h') diff --git a/framebuffer/framebuffer.h b/framebuffer/framebuffer.h index 0e46cb1f5..5204dbd92 100644 --- a/framebuffer/framebuffer.h +++ b/framebuffer/framebuffer.h @@ -3,6 +3,7 @@ extern const struct plotter_table fb_plotters; nsfb_t *framebuffer_initialise(const char *fename, int width, int height, int bpp); +bool framebuffer_resize(nsfb_t *nsfb, int width, int height, int bpp); void framebuffer_finalise(void); bool framebuffer_set_cursor(struct fbtk_bitmap *bm); -- cgit v1.2.3