From 0d9c65d5587f2bb986d94c3ee48d382aa4eb38ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 3 Jun 2007 08:16:13 +0000 Subject: [PATCH] =?UTF-8?q?*=20applied=20patch=20by=20Jonas=20Sundstr?= =?UTF-8?q?=C3=B6m,=20the=20draggable=20icon=20in=20the=20Find=20window=20?= =?UTF-8?q?=20=20will=20be=20drawn=20with=20alpha=20channel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21302 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/Utilities.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kits/tracker/Utilities.cpp b/src/kits/tracker/Utilities.cpp index e815ab8f80..2804a31e6b 100644 --- a/src/kits/tracker/Utilities.cpp +++ b/src/kits/tracker/Utilities.cpp @@ -565,7 +565,12 @@ DraggableIcon::DragStarted(BMessage *) 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); } @@ -662,8 +667,7 @@ FlickerFreeStringView::Draw(BRect) } } loc.y = bounds.bottom - (1 + height.descent); - offscreen->MovePenTo(loc); - offscreen->DrawString(Text()); + offscreen->DrawString(Text(), loc); } offscreen->Sync(); SetDrawingMode(B_OP_COPY);