TONY: Initial commit of in progress dirty rect handling

This commit is contained in:
Paul Gilbert 2012-06-16 10:57:35 +10:00
parent 42a322d671
commit cdbc4aa28b
11 changed files with 167 additions and 25 deletions

View file

@ -623,8 +623,9 @@ Common::Error TonyEngine::saveGameState(int slot, const Common::String &desc) {
if (!GLOBALS._gfxEngine)
return Common::kUnknownError;
RMGfxTargetBuffer &bigBuf = *GLOBALS._gfxEngine;
RMSnapshot s;
s.grabScreenshot(*GLOBALS._gfxEngine, 4, _curThumbnail);
s.grabScreenshot(bigBuf, 4, _curThumbnail);
GLOBALS._gfxEngine->saveState(getSaveStateFileName(slot), (byte *)_curThumbnail, desc);
return Common::kNoError;