* applied patch by Jonas Sundström, the draggable icon in the Find window

will be drawn with alpha channel


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21302 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-06-03 08:16:13 +00:00
parent 0f609eb290
commit 0d9c65d558

View File

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