aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-06-03 12:21:52 +0000
committerTorbjörn Andersson2005-06-03 12:21:52 +0000
commitec958e975eb9eaac22843f8fd96df0b9a0fff6e4 (patch)
tree75993609beff468429e27752eb119c21a3256488 /gui
parent6ee65dafb937a4259d80389a679bbb67b9704be6 (diff)
downloadscummvm-rg350-ec958e975eb9eaac22843f8fd96df0b9a0fff6e4.tar.gz
scummvm-rg350-ec958e975eb9eaac22843f8fd96df0b9a0fff6e4.tar.bz2
scummvm-rg350-ec958e975eb9eaac22843f8fd96df0b9a0fff6e4.zip
Cleanup.
svn-id: r18323
Diffstat (limited to 'gui')
-rw-r--r--gui/chooser.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/gui/chooser.cpp b/gui/chooser.cpp
index cd434ad9b2..e8004d89ce 100644
--- a/gui/chooser.cpp
+++ b/gui/chooser.cpp
@@ -35,25 +35,20 @@ ChooserDialog::ChooserDialog(const String &title, const String &buttonLabel, int
const int screenW = g_system->getOverlayWidth();
const int screenH = g_system->getOverlayHeight();
- const Graphics::Font *font;
GUI::WidgetSize ws;
int buttonWidth, buttonHeight;
if (screenW >= 400 && screenH >= 300) {
ws = GUI::kBigWidgetSize;
- font = FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);
buttonHeight = kBigButtonHeight;
buttonWidth = kBigButtonWidth;
} else {
ws = GUI::kNormalWidgetSize;
- font = FontMan.getFontByUsage(Graphics::FontManager::kGUIFont);
buttonHeight = kButtonHeight;
buttonWidth = kButtonWidth;
}
- int lineHeight = font->getFontHeight() + 2;
-
// FIXME: This is an ugly hack. The 'height' parameter assumes a 200
// pixel tall screen, so try to scale that to something sensible.
@@ -66,9 +61,9 @@ ChooserDialog::ChooserDialog(const String &title, const String &buttonLabel, int
int yoffset = 6;
// Headline
- new StaticTextWidget(this, 10, 6, _w - 2 * 10, lineHeight, title, kTextAlignCenter, ws);
+ new StaticTextWidget(this, 10, 6, _w - 2 * 10, kLineHeight, title, kTextAlignCenter, ws);
- yoffset += lineHeight + 2;
+ yoffset += kLineHeight + 2;
// Add choice list
// HACK: Subtracting -12 from the height makes the list look good when