parent
871f832fe1
commit
0e32d53341
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue