diff options
author | Johannes Schickel | 2006-04-16 20:41:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-16 20:41:40 +0000 |
commit | e7716748ba964b1bf767df86227609ee49e444dc (patch) | |
tree | f15830aadd65158af7996d21bec68c0ae9d03f94 /engines | |
parent | b99632831f417d751d41deddc3a7b00b3dcc56b3 (diff) | |
download | scummvm-rg350-e7716748ba964b1bf767df86227609ee49e444dc.tar.gz scummvm-rg350-e7716748ba964b1bf767df86227609ee49e444dc.tar.bz2 scummvm-rg350-e7716748ba964b1bf767df86227609ee49e444dc.zip |
Should fix wrong thumbnail colors after a screen change, which changed bpp.
svn-id: r21954
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/dialogs.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index 6cc6224bfa..d5c1164c9b 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -344,6 +344,8 @@ protected: GUI::StaticTextWidget *_playtime; ScummEngine *_scumm; + virtual void handleScreenChanged(); + public: SaveLoadChooserEx(const String &title, const String &buttonLabel, bool saveMode, ScummEngine *engine); @@ -508,6 +510,18 @@ void SaveLoadChooserEx::handleCommand(CommandSender *sender, uint32 cmd, uint32 } } +void SaveLoadChooserEx::handleScreenChanged() { + int selItem = _list->getSelected(); + Graphics::Surface *thumb; + thumb = _scumm->loadThumbnailFromSlot(_saveMode ? selItem + 1 : selItem); + _gfxWidget->setGfx(thumb); + if (thumb) + thumb->free(); + delete thumb; + + Dialog::handleScreenChanged(); +} + #pragma mark - Common::StringList generateSavegameList(ScummEngine *scumm, bool saveMode) { |