[Scummvm-cvs-logs] SF.net SVN: scummvm: [20843] scummvm/trunk/gui/widget.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Feb 24 13:52:08 CET 2006
Revision: 20843
Author: eriktorbjorn
Date: 2006-02-24 13:51:41 -0800 (Fri, 24 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20843&view=rev
Log Message:
-----------
Turn off background caching for the graphics widget, so that the SCUMM
save/load dialog really cleans the thumbnail area when there is no thumbnail.
Modified Paths:
--------------
scummvm/trunk/gui/widget.cpp
Modified: scummvm/trunk/gui/widget.cpp
===================================================================
--- scummvm/trunk/gui/widget.cpp 2006-02-24 20:25:34 UTC (rev 20842)
+++ scummvm/trunk/gui/widget.cpp 2006-02-24 21:51:41 UTC (rev 20843)
@@ -244,6 +244,10 @@
: Widget(boss, x, y, w, h), _gfx() {
_flags = WIDGET_ENABLED | WIDGET_CLEARBG;
_type = kGraphicsWidget;
+ // HACK: Don't save the background. We want to be sure that redrawing
+ // the widget updates the screen, even when there isn't any image
+ // to draw.
+ _hints &= ~THEME_HINT_SAVE_BACKGROUND;
}
GraphicsWidget::~GraphicsWidget() {
More information about the Scummvm-git-logs
mailing list