* view accepting bitmaps are now cleared to white
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fba47bd728
commit
95baf31294
@ -189,7 +189,7 @@ BitmapManager::CreateBitmap(ClientMemoryAllocator* allocator,
|
||||
bitmap->fBuffer = buffer;
|
||||
bitmap->fToken = gTokenSpace.NewToken(kBitmapToken, bitmap);
|
||||
|
||||
if (flags & B_BITMAP_CLEAR_TO_WHITE) {
|
||||
if (flags & (B_BITMAP_CLEAR_TO_WHITE | B_BITMAP_ACCEPTS_VIEWS)) {
|
||||
if (space == B_CMAP8) {
|
||||
// "255" is the "transparent magic" index for B_CMAP8 bitmaps
|
||||
memset(bitmap->Bits(), 65, bitmap->BitsLength());
|
||||
|
Loading…
Reference in New Issue
Block a user