aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/dialogs.cpp
diff options
context:
space:
mode:
authorMax Horn2008-11-12 13:14:44 +0000
committerMax Horn2008-11-12 13:14:44 +0000
commit144be21bed1001c4a72739ef7656908cbf71e909 (patch)
tree45ebe3f4e3ea3079f54f7d9e705de502af9ac91f /engines/scumm/dialogs.cpp
parent190468c79a56eb75e7bdcb2bb558042e347a74d1 (diff)
downloadscummvm-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/dialogs.cpp')
-rw-r--r--engines/scumm/dialogs.cpp6
1 files changed, 1 insertions, 5 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;