hrev45090 adds 1 changeset to branch 'master' old head: 9abf41a7fe5d490686228dc4bc5f95a6bda15433 new head: a74c82b9773ea7ac069a3515adca66b22872f468 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a74c82b+%5E9abf41a ---------------------------------------------------------------------------- a74c82b: Tracker: Drawing issues in dragBitmap (#8005) Remove rounding issues in height calculation leading to drawing issues when using some font sizes. [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45090 Commit: a74c82b9773ea7ac069a3515adca66b22872f468 URL: http://cgit.haiku-os.org/haiku/commit/?id=a74c82b Author: Philippe Saint-Pierre <stpere@xxxxxxxxx> Date: Tue Dec 25 21:24:31 2012 UTC Ticket: https://dev.haiku-os.org/ticket/8005 ---------------------------------------------------------------------------- 1 file changed, 2 insertions(+), 2 deletions(-) src/kits/tracker/ContainerWindow.cpp | 4 ++-- ---------------------------------------------------------------------------- diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index d5ede41..6b2611c 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -419,8 +419,8 @@ DraggableContainerIcon::MouseMoved(BPoint point, uint32 /*transit*/, font_height fontHeight; font.GetHeight(&fontHeight); - float height = fontHeight.ascent + fontHeight.descent + fontHeight.leading - + 2 + Bounds().Height() + 8; + float height = ceil(fontHeight.ascent + fontHeight.descent + + fontHeight.leading + 2 + Bounds().Height() + 8); BRect rect(0, 0, max_c(Bounds().Width(), font.StringWidth(model->Name()) + 4), height);