From 2d40452a119fd9a0ed4b482b92c9c8df5978c917 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 15 May 2005 17:01:32 +0000 Subject: Unified rules that determine when a dialog shall use its 'big' mode and when its 'normal' mode; MessageDialog uses Font::wordWrapText now; MessageDialog scales itself now svn-id: r18111 --- scumm/dialogs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm') diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 7b05d0c9a4..feeaccd36f 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -390,8 +390,8 @@ Common::StringList generateSavegameList(ScummEngine *scumm, bool saveMode) { MainMenuDialog::MainMenuDialog(ScummEngine *scumm) : ScummDialog(scumm, 0, 0, 0, 0) { - const int sw = g_system->getOverlayWidth(); - const int sh = g_system->getOverlayHeight(); + const int screenW = g_system->getOverlayWidth(); + const int screenH = g_system->getOverlayHeight(); int hOffset; int vSpace; @@ -401,7 +401,7 @@ MainMenuDialog::MainMenuDialog(ScummEngine *scumm) int buttonWidth; int buttonHeight; - if (sw >= 400 && sh >= 300) { + if (screenW >= 400 && screenH >= 300) { buttonWidth = 160; buttonHeight = 28; ws = GUI::kBigWidgetSize; @@ -440,8 +440,8 @@ MainMenuDialog::MainMenuDialog(ScummEngine *scumm) _w = buttonWidth + 2 * hOffset; _h = y + vSpace; - _x = (sw - _w) / 2; - _y = (sh - _h) / 2; + _x = (screenW - _w) / 2; + _y = (screenH - _h) / 2; // -- cgit v1.2.3