summaryrefslogtreecommitdiff
path: root/beos/beos_bitmap.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-01 21:04:32 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-01 21:04:32 +0000
commitd4c4800fec9608b982182398af6ac33a2e33aeae (patch)
tree6d6fa9c088d722af28c26580d1c1399e22f10509 /beos/beos_bitmap.cpp
parentdcb33e9835cc9a3dba2049e6913e10e6b524d70f (diff)
downloadnetsurf-d4c4800fec9608b982182398af6ac33a2e33aeae.tar.gz
netsurf-d4c4800fec9608b982182398af6ac33a2e33aeae.tar.bz2
- iMissing knockout option to false
- Use Begin/EndViewTransaction() though it doesn't seem to help much reduce flicker - some fiddling with bitmaps svn path=/trunk/netsurf/; revision=5466
Diffstat (limited to 'beos/beos_bitmap.cpp')
-rw-r--r--beos/beos_bitmap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/beos/beos_bitmap.cpp b/beos/beos_bitmap.cpp
index 06e686c0e..cfb824e25 100644
--- a/beos/beos_bitmap.cpp
+++ b/beos/beos_bitmap.cpp
@@ -133,6 +133,7 @@ void *bitmap_create(int width, int height, unsigned int state)
bmp->pretile_x = bmp->pretile_y = bmp->pretile_xy = NULL;
bmp->opaque = false;
+ bmp->opaque = (state & BITMAP_OPAQUE) != 0; // XXX store state instead
#if 0 /* GTK */
bmp->primary = gdk_pixbuf_new(GDK_COLORSPACE_RGB, true, 8,
@@ -174,7 +175,8 @@ bool bitmap_test_opaque(void *vbitmap)
struct bitmap *bitmap = (struct bitmap *)vbitmap;
assert(bitmap);
/* todo: test if bitmap as opaque */
- return false;//bitmap->opaque;
+ //return bitmap->opaque;
+ return true;
}
@@ -188,7 +190,7 @@ bool bitmap_get_opaque(void *vbitmap)
struct bitmap *bitmap = (struct bitmap *)vbitmap;
assert(bitmap);
/* todo: get whether bitmap is opaque */
- return false;//bitmap->opaque;
+ return bitmap->opaque;
}