[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);
}
Other related posts:
- » [haiku-development] icon drawing patch for Tracker