better compute rightDivider before changing the font size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -666,6 +666,7 @@ BStatusView::Draw(BRect updateRect)
|
||||
SetHighColor(0, 0, 0);
|
||||
DrawString(buffer.String(), tp);
|
||||
|
||||
float rightDivider = tp.x + StringWidth(buffer.String()) + 5.0f;
|
||||
SetHighColor(tint_color(LowColor(), B_DARKEN_4_TINT));
|
||||
|
||||
BFont font;
|
||||
@@ -675,8 +676,6 @@ BStatusView::Draw(BRect updateRect)
|
||||
font.SetSize(max_c(8.0f, fontSize));
|
||||
SetFont(&font, B_FONT_SIZE);
|
||||
|
||||
float rightDivider = tp.x + StringWidth(buffer.String()) + 5.0f;
|
||||
|
||||
if (sShowSpeed) {
|
||||
// Draw speed info
|
||||
if (fBytesPerSecond != 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user