since the bitmap will be filled with content, we can use 0 as flags for the BBitmap constructor, which prevents it from unnecessarily filling with white
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12981 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -27,6 +27,9 @@
|
|||||||
// Standard Includes -----------------------------------------------------------
|
// Standard Includes -----------------------------------------------------------
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
// TODO: remove
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
// System Includes -------------------------------------------------------------
|
// System Includes -------------------------------------------------------------
|
||||||
#include <Invoker.h>
|
#include <Invoker.h>
|
||||||
#include <Looper.h>
|
#include <Looper.h>
|
||||||
@@ -676,7 +679,7 @@ BBitmap* BAlert::InitIcon()
|
|||||||
if (rawIcon)
|
if (rawIcon)
|
||||||
{
|
{
|
||||||
// Now build the bitmap
|
// Now build the bitmap
|
||||||
Icon = new BBitmap(BRect(0, 0, 31, 31), B_CMAP8);
|
Icon = new BBitmap(BRect(0, 0, 31, 31), 0, B_CMAP8);
|
||||||
Icon->SetBits(rawIcon, size, 0, B_CMAP8);
|
Icon->SetBits(rawIcon, size, 0, B_CMAP8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user