[haiku-development] icon patch for the Team Monitor

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);
 

Other related posts: