diff options
Diffstat (limited to 'engines')
-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; |