diff options
author | Max Horn | 2008-11-12 13:14:44 +0000 |
---|---|---|
committer | Max Horn | 2008-11-12 13:14:44 +0000 |
commit | 144be21bed1001c4a72739ef7656908cbf71e909 (patch) | |
tree | 45ebe3f4e3ea3079f54f7d9e705de502af9ac91f /engines/scumm | |
parent | 190468c79a56eb75e7bdcb2bb558042e347a74d1 (diff) | |
download | scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.tar.gz scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.tar.bz2 scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.zip |
GUI: Got rid of the WidgetSize stuff
svn-id: r35022
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/dialogs.cpp | 6 | ||||
-rw-r--r-- | engines/scumm/dialogs.h | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index 581c16ca06..1cb4e8a41d 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -864,11 +864,7 @@ void ValueDisplayDialog::reflowLayout() { const int screenW = g_system->getOverlayWidth(); const int screenH = g_system->getOverlayHeight(); - if (g_gui.getWidgetSize() == GUI::kBigWidgetSize) { - _percentBarWidth = kBigPercentBarWidth; - } else { - _percentBarWidth = kPercentBarWidth; - } + _percentBarWidth = screenW * 100 / 640; int width = g_gui.getStringWidth(_label) + 16 + _percentBarWidth; int height = g_gui.getFontHeight() + 4 * 2; diff --git a/engines/scumm/dialogs.h b/engines/scumm/dialogs.h index 3837787a3b..290b3450dc 100644 --- a/engines/scumm/dialogs.h +++ b/engines/scumm/dialogs.h @@ -222,8 +222,6 @@ public: protected: enum { - kPercentBarWidth = 50, - kBigPercentBarWidth = 75, kDisplayDelay = 1500 }; Common::String _label; |