[haiku-development] icon patch for the Team Monitor
- From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 31 May 2007 20:24:56 +0200 CEST
Here's a patch to fix display of the large icon of the selected
team. Currently the transparent parts of vector icons are
drawn as all black.
The list items are drawn okay. This is just for the large icon.
/Jonas Sundström.
Index: TMWindow.cpp
===================================================================
--- TMWindow.cpp (revision 21276)
+++ TMWindow.cpp (working copy)
@@ -381,7 +381,12 @@
// draw icon and application path
BRect frame(rect);
frame.Set(frame.left, frame.top, frame.left + 31, frame.top +
31);
+#ifdef __HAIKU__
+ SetDrawingMode(B_OP_ALPHA);
+ SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
+#else
SetDrawingMode(B_OP_OVER);
+#endif
DrawBitmap(fItem->LargeIcon(), frame);
SetDrawingMode(B_OP_COPY);
- Follow-Ups:
- [haiku-development] Re: icon patch for the Team Monitor
- From: Axel Dörfler
Other related posts:
- » [haiku-development] icon patch for the Team Monitor
- » [haiku-development] Re: icon patch for the Team Monitor
- [haiku-development] Re: icon patch for the Team Monitor
- From: Axel Dörfler