BSpinner: Draw spinner plus sign better

The plus was a bit too tall making it look odd.
This commit is contained in:
John Scipione
2017-11-16 11:59:16 -08:00
parent 7d8eb4d7f9
commit 6a634757e6
+2 -2
View File
@@ -432,8 +432,8 @@ SpinnerButton::Draw(BRect updateRect)
BPoint(rect.right, rect.top + halfHeight));
if (fSpinnerDirection == SPINNER_INCREMENT) {
float halfWidth = floorf(rect.Width() / 2);
StrokeLine(BPoint(rect.left + halfWidth, rect.top),
BPoint(rect.left + halfWidth, rect.bottom));
StrokeLine(BPoint(rect.left + halfWidth, rect.top + 1),
BPoint(rect.left + halfWidth, rect.bottom - 1));
}
}
}