[haiku-development] icon drawing patch for Tracker

This makes the drawing of the icon in the Find panel, 
(and other places), transparent in Haiku.

Index: src/kits/tracker/Utilities.cpp
===================================================================
--- src/kits/tracker/Utilities.cpp      (revision 21293)
+++ src/kits/tracker/Utilities.cpp      (working copy)
@@ -565,7 +565,12 @@
 void
 DraggableIcon::Draw(BRect)
 {
+#ifdef __HAIKU__
+       SetDrawingMode(B_OP_ALPHA);
+       SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
+#else
        SetDrawingMode(B_OP_OVER);
+#endif
        DrawBitmap(fBitmap);
 }
 
Same as attachment.

/Jonas.
Index: src/kits/tracker/Utilities.cpp
===================================================================
--- src/kits/tracker/Utilities.cpp      (revision 21293)
+++ src/kits/tracker/Utilities.cpp      (working copy)
@@ -565,7 +565,12 @@
 void
 DraggableIcon::Draw(BRect)
 {
+#ifdef __HAIKU__
+       SetDrawingMode(B_OP_ALPHA);
+       SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
+#else
        SetDrawingMode(B_OP_OVER);
+#endif
        DrawBitmap(fBitmap);
 }
 

Other related posts:

  • » [haiku-development] icon drawing patch for Tracker