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:32:42 -08:00
parent 7d8eb4d7f9
commit 6a634757e6
1 changed files with 2 additions and 2 deletions

View File

@ -432,8 +432,8 @@ SpinnerButton::Draw(BRect updateRect)
BPoint(rect.right, rect.top + halfHeight)); BPoint(rect.right, rect.top + halfHeight));
if (fSpinnerDirection == SPINNER_INCREMENT) { if (fSpinnerDirection == SPINNER_INCREMENT) {
float halfWidth = floorf(rect.Width() / 2); float halfWidth = floorf(rect.Width() / 2);
StrokeLine(BPoint(rect.left + halfWidth, rect.top), StrokeLine(BPoint(rect.left + halfWidth, rect.top + 1),
BPoint(rect.left + halfWidth, rect.bottom)); BPoint(rect.left + halfWidth, rect.bottom - 1));
} }
} }
} }