Tracker: Fix remaining drawing artifacts, last part of #18826

Change-Id: I9483d67bfb98207e1cde726aaa00df6031933f3c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9496
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
This commit is contained in:
John Scipione
2025-07-30 04:02:39 +00:00
parent 64334a1580
commit 08bdab7600
+2
View File
@@ -185,6 +185,8 @@ BTextWidget::CalcRectCommon(BPoint poseLoc, const BColumn* column,
rect.top = rect.bottom - floorf(ActualFontHeight(view));
} else {
float iconSize = (float)view->IconSizeInt();
textWidth = floorf(textWidth);
// prevent drawing artifacts from selection rect drawing an extra pixel
if (view->ViewMode() == kIconMode) {
// icon mode