* fixed filling B_CMAP8 bitmaps with white (255 was the wrong
color index) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16843 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d7e9392e25
commit
4ec7e19751
@ -120,8 +120,12 @@ if (flags & B_BITMAP_WILL_OVERLAY)
|
||||
bitmap->fInitialized = true;
|
||||
|
||||
if (flags & B_BITMAP_CLEAR_TO_WHITE) {
|
||||
// should work for most colorspaces
|
||||
memset(bitmap->Bits(), 255, bitmap->BitsLength());
|
||||
if (space == B_CMAP8)
|
||||
// "255" is the "transparent magic" index for B_CMAP8 bitmaps
|
||||
memset(bitmap->Bits(), 65, bitmap->BitsLength());
|
||||
else
|
||||
// should work for most colorspaces
|
||||
memset(bitmap->Bits(), 255, bitmap->BitsLength());
|
||||
}
|
||||
} else {
|
||||
// Allocation failed for buffer or bitmap list
|
||||
|
Loading…
Reference in New Issue
Block a user