aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-16 11:28:59 +0000
committerJohannes Schickel2009-08-16 11:28:59 +0000
commit0e32d53341f7b20eef356d2c8b9a93f7dca487da (patch)
tree35c4603224a8dde1f025670c7dd084f9bc908d64 /engines/scumm
parent871f832fe1f7213a31e80d8667ce37c9ce823aeb (diff)
downloadscummvm-rg350-0e32d53341f7b20eef356d2c8b9a93f7dca487da.tar.gz
scummvm-rg350-0e32d53341f7b20eef356d2c8b9a93f7dca487da.tar.bz2
scummvm-rg350-0e32d53341f7b20eef356d2c8b9a93f7dca487da.zip
Fix bug #2838464 "SCUMM: GUI messages misaligned".
svn-id: r43431
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/dialogs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 42e49afcc1..93175654be 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -745,7 +745,7 @@ InfoDialog::InfoDialog(ScummEngine *scumm, int res)
_message = queryResString(res);
// Width and height are dummy
- _text = new StaticTextWidget(this, 4, 4, 10, 10, _message, kTextAlignCenter);
+ _text = new StaticTextWidget(this, 0, 0, 10, 10, _message, kTextAlignCenter);
}
InfoDialog::InfoDialog(ScummEngine *scumm, const String& message)
@@ -754,7 +754,7 @@ InfoDialog::InfoDialog(ScummEngine *scumm, const String& message)
_message = message;
// Width and height are dummy
- _text = new StaticTextWidget(this, 4, 4, 10, 10, _message, kTextAlignCenter);
+ _text = new StaticTextWidget(this, 0, 0, 10, 10, _message, kTextAlignCenter);
}
void InfoDialog::setInfoText(const String& message) {
@@ -775,7 +775,7 @@ void InfoDialog::reflowLayout() {
_x = (screenW - width) / 2;
_y = (screenH - height) / 2;
- _text->setSize(_w - 8, _h);
+ _text->setSize(_w, _h);
}
const Common::String InfoDialog::queryResString(int stringno) {