From 3a42c9ba157a6bbbed6ff832d3c11a6b4f7d286f Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 30 Mar 2006 16:26:32 +0000 Subject: [PATCH] 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 --- src/apps/pulse/NormalPulseView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/pulse/NormalPulseView.cpp b/src/apps/pulse/NormalPulseView.cpp index 298c8e9b88..d1aea5803c 100644 --- a/src/apps/pulse/NormalPulseView.cpp +++ b/src/apps/pulse/NormalPulseView.cpp @@ -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);