diff options
author | Alyssa Milburn | 2011-02-14 12:49:04 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-02-14 16:20:11 +0100 |
commit | 898f7d12447946d4f6b7801218fc4ce4adbd8ec4 (patch) | |
tree | 95568eefbf2cf58adf231d3af63e0838e7df79eb /engines | |
parent | 75423cfad2311276e741d521289ec29e75f029c3 (diff) | |
download | scummvm-rg350-898f7d12447946d4f6b7801218fc4ce4adbd8ec4.tar.gz scummvm-rg350-898f7d12447946d4f6b7801218fc4ce4adbd8ec4.tar.bz2 scummvm-rg350-898f7d12447946d4f6b7801218fc4ce4adbd8ec4.zip |
MOHAWK: Center InfoDialog text.
This is the same as the fix for scumm in 0e32d533.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp index f1a5586127..b5ddc6d233 100644 --- a/engines/mohawk/dialogs.cpp +++ b/engines/mohawk/dialogs.cpp @@ -38,7 +38,7 @@ namespace Mohawk { InfoDialog::InfoDialog(MohawkEngine *vm, const Common::String &message) : _vm(vm), GUI::Dialog(0, 0, 1, 1), _message(message) { _backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial; - _text = new GUI::StaticTextWidget(this, 4, 4, 10, 10, _message, Graphics::kTextAlignCenter); + _text = new GUI::StaticTextWidget(this, 0, 0, 10, 10, _message, Graphics::kTextAlignCenter); } void InfoDialog::setInfoText(const Common::String &message) { @@ -58,7 +58,7 @@ void InfoDialog::reflowLayout() { _x = (screenW - width) / 2; _y = (screenH - height) / 2; - _text->setSize(_w - 8, _h); + _text->setSize(_w, _h); } PauseDialog::PauseDialog(MohawkEngine *vm, const Common::String &message) : InfoDialog(vm, message) { |