aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-01-10 21:29:12 +0000
committerTorbjörn Andersson2009-01-10 21:29:12 +0000
commit5b80774dded7b39083ff8eabc633e88fefc15975 (patch)
treec67ed9aede2170ec75c8be499902c3a913c307c9 /engines/scumm
parentcffe7b837996db1707d1bedcf7d059876212be98 (diff)
downloadscummvm-rg350-5b80774dded7b39083ff8eabc633e88fefc15975.tar.gz
scummvm-rg350-5b80774dded7b39083ff8eabc633e88fefc15975.tar.bz2
scummvm-rg350-5b80774dded7b39083ff8eabc633e88fefc15975.zip
Fixed uninitialised variables in the SCUMM save/load dialog. The updateInfos()
function needs to know the dimensions of the dialog, so don't call it until after calling Dialog::reflowLayout(). svn-id: r35805
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/dialogs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index bca34ebd1b..fc21b10b8d 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -351,7 +351,6 @@ void SaveLoadChooser::reflowLayout() {
_fillR = 0; //g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillR");
_fillG = 0; //g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillG");
_fillB = 0; //g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillB");
- updateInfos(false);
} else {
_container->setVisible(false);
_gfxWidget->setVisible(false);
@@ -361,6 +360,9 @@ void SaveLoadChooser::reflowLayout() {
}
Dialog::reflowLayout();
+
+ if (_container->isVisible())
+ updateInfos(false);
}
void SaveLoadChooser::updateInfos(bool redraw) {