Go to the FreeLists Home Page Home Signup Help Login
 



[haiku-development] || [Date Prev] [06-2007 Date Index] [Date Next] || [Thread Prev] [06-2007 Thread Index] [Thread Next]

[haiku-development] icon drawing patch for Tracker

  • From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 02 Jun 2007 22:29:07 +0200 CEST
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);
 }
 




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.