summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-08-14 16:55:21 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-08-14 16:55:21 +0000
commit26cc213d231e9a38f8f2340d9dc94157247fba96 (patch)
treed2367ea732efeec686bbc7f96fadf1e065dd1e74 /framebuffer
parent9aa397ba6896fc31268522ef26da3f0a126cb69e (diff)
downloadnetsurf-26cc213d231e9a38f8f2340d9dc94157247fba96.tar.gz
netsurf-26cc213d231e9a38f8f2340d9dc94157247fba96.tar.bz2
Initialise opaque setting correctly at bitmap creation in framebuffer front end. (Now JPEGs will knockout stuff behind them.)
svn path=/trunk/netsurf/; revision=10707
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/bitmap.c2
1 files changed, 1 insertions, 1 deletions
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;