summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-08-13 08:36:00 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-08-13 08:36:00 +0000
commit312b1e9b4ca22d45e0a081944ac988fc78baa18c (patch)
tree3ced354b87850b5ce08919bd556b6137e6f182e5 /beos
parent4cb2657d191d626e3ddb37166fa591ce877d0434 (diff)
downloadnetsurf-312b1e9b4ca22d45e0a081944ac988fc78baa18c.tar.gz
netsurf-312b1e9b4ca22d45e0a081944ac988fc78baa18c.tar.bz2
Remove dead code. Fix bitmap_set_opaque() to apply the opacity value it's passed, rather than just setting it to true.
svn path=/trunk/netsurf/; revision=10689
Diffstat (limited to 'beos')
-rw-r--r--beos/beos_bitmap.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/beos/beos_bitmap.cpp b/beos/beos_bitmap.cpp
index 0ee14d9b9..5442b3adf 100644
--- a/beos/beos_bitmap.cpp
+++ b/beos/beos_bitmap.cpp
@@ -122,8 +122,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
+ bmp->opaque = (state & BITMAP_OPAQUE) != 0;
return bmp;
}
@@ -139,8 +138,7 @@ void bitmap_set_opaque(void *vbitmap, bool opaque)
{
struct bitmap *bitmap = (struct bitmap *)vbitmap;
assert(bitmap);
-/* todo: set bitmap as opaque */
- bitmap->opaque = true;
+ bitmap->opaque = opaque;
}
@@ -155,7 +153,6 @@ bool bitmap_test_opaque(void *vbitmap)
struct bitmap *bitmap = (struct bitmap *)vbitmap;
assert(bitmap);
/* todo: test if bitmap as opaque */
- //return bitmap->opaque;
return true;
}