Fix off by one iconRect sizes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39914 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -321,11 +321,7 @@ NotificationView::Draw(BRect updateRect)
|
|||||||
// Move icon up by half progress bar height if it's present
|
// Move icon up by half progress bar height if it's present
|
||||||
iy -= (progRect.Height() + kEdgePadding) / 2.0;
|
iy -= (progRect.Height() + kEdgePadding) / 2.0;
|
||||||
|
|
||||||
iconRect.left = ix;
|
iconRect.Set(ix, iy, ix + iconSize - 1.0, iy + iconSize - 1.0);
|
||||||
iconRect.top = iy;
|
|
||||||
iconRect.right = ix + iconSize;
|
|
||||||
iconRect.bottom = iy + iconSize;
|
|
||||||
|
|
||||||
DrawBitmapAsync(fBitmap, fBitmap->Bounds(), iconRect);
|
DrawBitmapAsync(fBitmap, fBitmap->Bounds(), iconRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user