From 312b1e9b4ca22d45e0a081944ac988fc78baa18c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 13 Aug 2010 08:36:00 +0000 Subject: 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 --- beos/beos_bitmap.cpp | 7 ++----- 1 file 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; } -- cgit v1.2.3