[Scummvm-cvs-logs] SF.net SVN: scummvm:[35805] scummvm/trunk/engines/scumm/dialogs.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sat Jan 10 22:29:15 CET 2009
Revision: 35805
http://scummvm.svn.sourceforge.net/scummvm/?rev=35805&view=rev
Author: eriktorbjorn
Date: 2009-01-10 21:29:12 +0000 (Sat, 10 Jan 2009)
Log Message:
-----------
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().
Modified Paths:
--------------
scummvm/trunk/engines/scumm/dialogs.cpp
Modified: scummvm/trunk/engines/scumm/dialogs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/dialogs.cpp 2009-01-10 17:08:29 UTC (rev 35804)
+++ scummvm/trunk/engines/scumm/dialogs.cpp 2009-01-10 21:29:12 UTC (rev 35805)
@@ -351,7 +351,6 @@
_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 @@
}
Dialog::reflowLayout();
+
+ if (_container->isVisible())
+ updateInfos(false);
}
void SaveLoadChooser::updateInfos(bool redraw) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list