From c9ed0088c9cd246801ece55a0fb1f4483fa50499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 19 Nov 2006 00:40:35 +0000 Subject: [PATCH] use B_RGBA32 icons for displaying stuff like "New Terminal", "Launch Tracker"... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19327 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/processcontroller/AutoIcon.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/apps/processcontroller/AutoIcon.cpp b/src/apps/processcontroller/AutoIcon.cpp index 01e17ea53e..d63fcaa33c 100644 --- a/src/apps/processcontroller/AutoIcon.cpp +++ b/src/apps/processcontroller/AutoIcon.cpp @@ -37,15 +37,19 @@ BBitmap* AutoIcon::bitmap() { if (fBitmap == NULL) { - fBitmap = new BBitmap (BRect (0, 0, 15, 15), B_COLOR_8_BIT); +#ifdef HAIKU_TARGET_PLATFORM_HAIKU + fBitmap = new BBitmap (BRect (0, 0, 15, 15), B_RGBA32); +#else + fBitmap = new BBitmap (BRect (0, 0, 15, 15), B_CMAP8); +#endif if (fSignature) { entry_ref ref; be_roster->FindApp (fSignature, &ref); if (BNodeInfo::GetTrackerIcon(&ref, fBitmap, B_MINI_ICON) != B_OK) - fBitmap->SetBits(k_app_mini, 256, 0, B_COLOR_8_BIT); + fBitmap->SetBits(k_app_mini, 256, 0, B_CMAP8); } if (fbits) - fBitmap->SetBits (fbits, 256, 0, B_COLOR_8_BIT); + fBitmap->SetBits (fbits, 256, 0, B_CMAP8); } return fBitmap; }