From 4ece45439182c72b2a76243e82af9cb044cad5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 7 Jun 2005 13:14:57 +0000 Subject: [PATCH] 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 --- src/kits/interface/Alert.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 2a483835ce..bc4aba76ff 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -27,6 +27,9 @@ // Standard Includes ----------------------------------------------------------- #include +// TODO: remove +#include + // System Includes ------------------------------------------------------------- #include #include @@ -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); } }