aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-06-03 12:18:30 +0000
committerTorbjörn Andersson2005-06-03 12:18:30 +0000
commit6ee65dafb937a4259d80389a679bbb67b9704be6 (patch)
tree1b3c73b732ad08cd9e718e0ea3a1ada6ab04d28f
parent3772bb9873d327e93865a764ebef28c07cdaf655 (diff)
downloadscummvm-rg350-6ee65dafb937a4259d80389a679bbb67b9704be6.tar.gz
scummvm-rg350-6ee65dafb937a4259d80389a679bbb67b9704be6.tar.bz2
scummvm-rg350-6ee65dafb937a4259d80389a679bbb67b9704be6.zip
Cleanup. (I think you can see the pattern here. :-)
svn-id: r18322
-rw-r--r--gui/browser.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp
index 431e436e3e..18f13ecc30 100644
--- a/gui/browser.cpp
+++ b/gui/browser.cpp
@@ -137,10 +137,8 @@ BrowserDialog::BrowserDialog(const char *title, bool dirBrowser)
const int screenH = g_system->getOverlayHeight();
GUI::WidgetSize ws;
- int lineHeight;
int buttonHeight;
int buttonWidth;
- const Graphics::Font *font;
_w = (screenW * 7) / 8;
_h = (screenH * 9) / 10;
@@ -149,30 +147,26 @@ BrowserDialog::BrowserDialog(const char *title, bool dirBrowser)
if (screenW >= 400 && screenH >= 300) {
ws = GUI::kBigWidgetSize;
- font = FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);
buttonWidth = kBigButtonWidth;
buttonHeight = kBigButtonHeight;
} else {
ws = GUI::kNormalWidgetSize;
- font = FontMan.getFontByUsage(Graphics::FontManager::kGUIFont);
buttonWidth = kButtonWidth;
buttonHeight = kButtonHeight;
}
- lineHeight = font->getFontHeight() + 2;
-
_isDirBrowser = dirBrowser;
_fileList = NULL;
_currentPath = NULL;
// Headline - TODO: should be customizable during creation time
- new StaticTextWidget(this, 10, lineHeight, _w - 2 * 10, lineHeight, title, kTextAlignCenter, ws);
+ new StaticTextWidget(this, 10, kLineHeight, _w - 2 * 10, kLineHeight, title, kTextAlignCenter, ws);
// Current path - TODO: handle long paths ?
- _currentPath = new StaticTextWidget(this, 10, 2 * lineHeight, _w - 2 * 10, kLineHeight, "DUMMY", kTextAlignLeft, ws);
+ _currentPath = new StaticTextWidget(this, 10, 2 * kLineHeight, _w - 2 * 10, kLineHeight, "DUMMY", kTextAlignLeft, ws);
// Add file list
- _fileList = new ListWidget(this, 10, 3 * lineHeight, _w - 2 * 10, _h - 3 * lineHeight - buttonHeight - 14, ws);
+ _fileList = new ListWidget(this, 10, 3 * kLineHeight, _w - 2 * 10, _h - 3 * kLineHeight - buttonHeight - 14, ws);
_fileList->setNumberingMode(kListNumberingOff);
_fileList->setEditable(false);