From 144be21bed1001c4a72739ef7656908cbf71e909 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 12 Nov 2008 13:14:44 +0000 Subject: GUI: Got rid of the WidgetSize stuff svn-id: r35022 --- engines/scumm/dialogs.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'engines/scumm/dialogs.cpp') 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; -- cgit v1.2.3