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);
|
SetHighColor(0, 0, 0);
|
||||||
DrawString(buffer.String(), tp);
|
DrawString(buffer.String(), tp);
|
||||||
|
|
||||||
|
float rightDivider = tp.x + StringWidth(buffer.String()) + 5.0f;
|
||||||
SetHighColor(tint_color(LowColor(), B_DARKEN_4_TINT));
|
SetHighColor(tint_color(LowColor(), B_DARKEN_4_TINT));
|
||||||
|
|
||||||
BFont font;
|
BFont font;
|
||||||
@@ -675,8 +676,6 @@ BStatusView::Draw(BRect updateRect)
|
|||||||
font.SetSize(max_c(8.0f, fontSize));
|
font.SetSize(max_c(8.0f, fontSize));
|
||||||
SetFont(&font, B_FONT_SIZE);
|
SetFont(&font, B_FONT_SIZE);
|
||||||
|
|
||||||
float rightDivider = tp.x + StringWidth(buffer.String()) + 5.0f;
|
|
||||||
|
|
||||||
if (sShowSpeed) {
|
if (sShowSpeed) {
|
||||||
// Draw speed info
|
// Draw speed info
|
||||||
if (fBytesPerSecond != 0.0) {
|
if (fBytesPerSecond != 0.0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user