[Scummvm-cvs-logs] SF.net SVN: scummvm:[34590] scummvm/trunk/gui/launcher.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed Sep 17 19:46:55 CEST 2008
Revision: 34590
http://scummvm.svn.sourceforge.net/scummvm/?rev=34590&view=rev
Author: lordhoto
Date: 2008-09-17 17:46:55 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
Fixed bug in SaveLoadChooser reflowLayout, which prevented widgets from being properly hidden.
Modified Paths:
--------------
scummvm/trunk/gui/launcher.cpp
Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp 2008-09-17 17:31:29 UTC (rev 34589)
+++ scummvm/trunk/gui/launcher.cpp 2008-09-17 17:46:55 UTC (rev 34590)
@@ -514,6 +514,7 @@
SaveLoadChooser::SaveLoadChooser(const String &title, const String &buttonLabel)
: Dialog("scummsaveload"), _delSupport(0), _list(0), _chooseButton(0), _deleteButton(0), _gfxWidget(0) {
+ _delSupport = _metaInfoSupport = _thumbnailSupport = _saveDateSupport = _playTimeSupport = false;
_drawingHints |= GUI::THEME_HINT_SPECIAL_COLOR;
@@ -647,10 +648,15 @@
if (_saveDateSupport) {
_date->clearFlags(GUI::WIDGET_INVISIBLE);
_time->clearFlags(GUI::WIDGET_INVISIBLE);
+ } else {
+ _date->setFlags(GUI::WIDGET_INVISIBLE);
+ _time->setFlags(GUI::WIDGET_INVISIBLE);
}
if (_playTimeSupport)
_playtime->clearFlags(GUI::WIDGET_INVISIBLE);
+ else
+ _playtime->setFlags(GUI::WIDGET_INVISIBLE);
_fillR = g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillR");
_fillG = g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillG");
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