mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
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:
parent
cffe7b8379
commit
5b80774dde
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user