From 26cc213d231e9a38f8f2340d9dc94157247fba96 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 14 Aug 2010 16:55:21 +0000 Subject: Initialise opaque setting correctly at bitmap creation in framebuffer front end. (Now JPEGs will knockout stuff behind them.) svn path=/trunk/netsurf/; revision=10707 --- framebuffer/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framebuffer/bitmap.c b/framebuffer/bitmap.c index 4f9e90647..4d4821686 100644 --- a/framebuffer/bitmap.c +++ b/framebuffer/bitmap.c @@ -46,7 +46,7 @@ void *bitmap_create(int width, int height, unsigned int state) if (bitmap->pixdata != NULL) { bitmap->width = width; bitmap->height = height; - bitmap->opaque = false; + bitmap->opaque = (state & BITMAP_OPAQUE) != 0; } else { free(bitmap); bitmap=NULL; -- cgit v1.2.3