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:
Stephan Aßmus 2005-06-07 13:14:57 +00:00
parent 8768dcd876
commit 4ece454391

View File

@ -27,6 +27,9 @@
// Standard Includes -----------------------------------------------------------
#include <string.h>
// TODO: remove
#include <stdio.h>
// System Includes -------------------------------------------------------------
#include <Invoker.h>
#include <Looper.h>
@ -676,7 +679,7 @@ BBitmap* BAlert::InitIcon()
if (rawIcon)
{
// 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);
}
}