The team monitor now shows the large icon correctly, thanks to Jonas Sundstrom.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21281 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -381,7 +381,12 @@ TMDescView::Draw(BRect rect)
|
|||||||
// draw icon and application path
|
// draw icon and application path
|
||||||
BRect frame(rect);
|
BRect frame(rect);
|
||||||
frame.Set(frame.left, frame.top, frame.left + 31, frame.top + 31);
|
frame.Set(frame.left, frame.top, frame.left + 31, frame.top + 31);
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
SetDrawingMode(B_OP_ALPHA);
|
||||||
|
SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
|
||||||
|
#else
|
||||||
SetDrawingMode(B_OP_OVER);
|
SetDrawingMode(B_OP_OVER);
|
||||||
|
#endif
|
||||||
DrawBitmap(fItem->LargeIcon(), frame);
|
DrawBitmap(fItem->LargeIcon(), frame);
|
||||||
SetDrawingMode(B_OP_COPY);
|
SetDrawingMode(B_OP_COPY);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user