diff options
author | Torbjörn Andersson | 2006-02-24 21:51:41 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-02-24 21:51:41 +0000 |
commit | 4aaf6fec8d26f5f8a78c674b50464b3956d49002 (patch) | |
tree | 7eddc96621cc472233a452bf63a61b3d252e49a5 /gui | |
parent | 2cb8832991eccd9c11c170375309b28e1f52ef33 (diff) | |
download | scummvm-rg350-4aaf6fec8d26f5f8a78c674b50464b3956d49002.tar.gz scummvm-rg350-4aaf6fec8d26f5f8a78c674b50464b3956d49002.tar.bz2 scummvm-rg350-4aaf6fec8d26f5f8a78c674b50464b3956d49002.zip |
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.
svn-id: r20843
Diffstat (limited to 'gui')
-rw-r--r-- | gui/widget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index a43ea86227..6b65904ebf 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -244,6 +244,10 @@ GraphicsWidget::GraphicsWidget(GuiObject *boss, int x, int y, int w, int h) : 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() { |