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
This commit is contained in:
Torbjörn Andersson 2009-01-10 21:29:12 +00:00
parent cffe7b8379
commit 5b80774dde

View File

@ -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) {