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
This commit is contained in:
Stephan Aßmus 2006-11-19 00:40:35 +00:00
parent 55efc4c369
commit c9ed0088c9
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}