From a017bfe8de4c6cf567d6a94fec16da3aa7ac3b2d Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Tue, 22 Apr 2008 21:40:15 +0000 Subject: [PATCH] * use HVIF icon on HAIKU, resolves ticket #1802 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25108 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/print/PrinterListView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/preferences/print/PrinterListView.cpp b/src/preferences/print/PrinterListView.cpp index 47ba8a1bcb..3cd297b8a1 100644 --- a/src/preferences/print/PrinterListView.cpp +++ b/src/preferences/print/PrinterListView.cpp @@ -230,7 +230,11 @@ PrinterItem::PrinterItem(PrintersWindow* window, const BDirectory& node) fNode(node) { if (sIcon == NULL) { +#ifdef HAIKU_TARGET_PLATFORM_HAIKU + sIcon = new BBitmap(BRect(0,0,B_LARGE_ICON-1,B_LARGE_ICON-1), B_RGBA32); +#else sIcon = new BBitmap(BRect(0,0,B_LARGE_ICON-1,B_LARGE_ICON-1), B_CMAP8); +#endif BMimeType type(PSRV_PRINTER_FILETYPE); type.GetIcon(sIcon, B_LARGE_ICON); } @@ -368,7 +372,11 @@ void PrinterItem::DrawItem(BView *owner, BRect /*bounds*/, bool complete) BPoint transportPt(bounds.right - width -8, driverPt.y); drawing_mode mode = owner->DrawingMode(); +#ifdef HAIKU_TARGET_PLATFORM_HAIKU + owner->SetDrawingMode(B_OP_ALPHA); +#else owner->SetDrawingMode(B_OP_OVER); +#endif owner->DrawBitmap(IsActivePrinter() ? sSelectedIcon : sIcon, iconPt); // left of item