From 7dd47a9be56876931f06d9d4e4fd4eb6a90451fe Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 21 Dec 2010 10:12:34 +0000 Subject: [PATCH] Fix off by one iconRect sizes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39914 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/notification/NotificationView.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/servers/notification/NotificationView.cpp b/src/servers/notification/NotificationView.cpp index bb135a860f..f33d5e027f 100644 --- a/src/servers/notification/NotificationView.cpp +++ b/src/servers/notification/NotificationView.cpp @@ -321,12 +321,8 @@ NotificationView::Draw(BRect updateRect) // Move icon up by half progress bar height if it's present iy -= (progRect.Height() + kEdgePadding) / 2.0; - iconRect.left = ix; - iconRect.top = iy; - iconRect.right = ix + iconSize; - iconRect.bottom = iy + iconSize; - - DrawBitmapAsync(fBitmap, fBitmap->Bounds(), iconRect); + iconRect.Set(ix, iy, ix + iconSize - 1.0, iy + iconSize - 1.0); + DrawBitmapAsync(fBitmap, fBitmap->Bounds(), iconRect); } // Draw content