diff options
author | Torbjörn Andersson | 2006-05-31 12:27:05 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-31 12:27:05 +0000 |
commit | 09074b1685e4d2f7555c24b7b011eb3ea13c562b (patch) | |
tree | 3589bc14cb16258cf65f7c9f96d58c3a1ad97f6a /gui/message.cpp | |
parent | 8975ba896378dfce8418453f7b6121b54d24d11e (diff) | |
download | scummvm-rg350-09074b1685e4d2f7555c24b7b011eb3ea13c562b.tar.gz scummvm-rg350-09074b1685e4d2f7555c24b7b011eb3ea13c562b.tar.bz2 scummvm-rg350-09074b1685e4d2f7555c24b7b011eb3ea13c562b.zip |
More cleanup. We shouldn't need these widget size parameters either.
svn-id: r22799
Diffstat (limited to 'gui/message.cpp')
-rw-r--r-- | gui/message.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gui/message.cpp b/gui/message.cpp index 96d620bb07..2453c9506b 100644 --- a/gui/message.cpp +++ b/gui/message.cpp @@ -41,15 +41,12 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB const int screenW = g_system->getOverlayWidth(); const int screenH = g_system->getOverlayHeight(); - GUI::WidgetSize ws; int buttonWidth, buttonHeight; - if (screenW >= 400 && screenH >= 300) { - ws = GUI::kBigWidgetSize; + if (g_gui.getWidgetSize() == kBigWidgetSize) { buttonWidth = kBigButtonWidth; buttonHeight = kBigButtonHeight; } else { - ws = GUI::kNormalWidgetSize; buttonWidth = kButtonWidth; buttonHeight = kButtonHeight; } @@ -96,10 +93,10 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB } if (defaultButton) - addButton(this, okButtonPos, _h - buttonHeight - 8, defaultButton, kOkCmd, '\n', ws); // Confirm dialog + addButton(this, okButtonPos, _h - buttonHeight - 8, defaultButton, kOkCmd, '\n'); // Confirm dialog if (altButton) - addButton(this, cancelButtonPos, _h - buttonHeight - 8, altButton, kCancelCmd, '\27', ws); // Cancel dialog + addButton(this, cancelButtonPos, _h - buttonHeight - 8, altButton, kCancelCmd, '\27'); // Cancel dialog } void MessageDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { |