Enforce a CPU speed font size no bigger than the processor type one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16934 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
db5c4a3b16
commit
3a42c9ba15
@ -220,7 +220,7 @@ NormalPulseView::Draw(BRect rect)
|
||||
// Let's compute the best font size for the CPU speed string each time...
|
||||
BFont font;
|
||||
GetFont(&font);
|
||||
SetFontSize(max_font_size(font, buffer, 11.0f, 46.0f));
|
||||
SetFontSize(max_font_size(font, buffer, fProcessorFontSize, 46.0f));
|
||||
width = StringWidth(buffer);
|
||||
MovePenTo(10 + (32 - width / 2), 60);
|
||||
DrawString(buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user