TSAGE: Changed engine to use Graphics::ManagedSurface
This commit is contained in:
parent
3da3dda187
commit
077250acfb
25 changed files with 240 additions and 314 deletions
|
@ -289,10 +289,10 @@ void Saver::writeSavegameHeader(Common::OutSaveFile *out, tSageSavegameHeader &h
|
|||
|
||||
// Create a thumbnail and save it
|
||||
Graphics::Surface *thumb = new Graphics::Surface();
|
||||
Graphics::Surface s = g_globals->_screenSurface.lockSurface();
|
||||
Graphics::Surface s = g_globals->_screen.lockSurface();
|
||||
::createThumbnail(thumb, (const byte *)s.getPixels(), SCREEN_WIDTH, SCREEN_HEIGHT, thumbPalette);
|
||||
Graphics::saveThumbnail(*out, *thumb);
|
||||
g_globals->_screenSurface.unlockSurface();
|
||||
g_globals->_screen.unlockSurface();
|
||||
thumb->free();
|
||||
delete thumb;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue