* 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:
@@ -120,8 +120,12 @@ if (flags & B_BITMAP_WILL_OVERLAY)
|
|||||||
bitmap->fInitialized = true;
|
bitmap->fInitialized = true;
|
||||||
|
|
||||||
if (flags & B_BITMAP_CLEAR_TO_WHITE) {
|
if (flags & B_BITMAP_CLEAR_TO_WHITE) {
|
||||||
// should work for most colorspaces
|
if (space == B_CMAP8)
|
||||||
memset(bitmap->Bits(), 255, bitmap->BitsLength());
|
// "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 {
|
} else {
|
||||||
// Allocation failed for buffer or bitmap list
|
// Allocation failed for buffer or bitmap list
|
||||||
|
|||||||
Reference in New Issue
Block a user