mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
CGE: Take advantage of Surface::getPixels.
This commit is contained in:
parent
01daff0f1d
commit
c874721109
@ -358,7 +358,7 @@ void CGEEngine::writeSavegameHeader(Common::OutSaveFile *out, SavegameHeader &he
|
||||
// Create a thumbnail and save it
|
||||
Graphics::Surface *thumb = new Graphics::Surface();
|
||||
Graphics::Surface *s = _vga->_page[0];
|
||||
::createThumbnail(thumb, (const byte *)s->getBasePtr(0, 0), kScrWidth, kScrHeight, thumbPalette);
|
||||
::createThumbnail(thumb, (const byte *)s->getPixels(), kScrWidth, kScrHeight, thumbPalette);
|
||||
Graphics::saveThumbnail(*out, *thumb);
|
||||
thumb->free();
|
||||
delete thumb;
|
||||
|
@ -826,7 +826,7 @@ void Vga::update() {
|
||||
}
|
||||
}
|
||||
|
||||
g_system->copyRectToScreen(Vga::_page[0]->getBasePtr(0, 0), kScrWidth, 0, 0, kScrWidth, kScrHeight);
|
||||
g_system->copyRectToScreen(Vga::_page[0]->getPixels(), kScrWidth, 0, 0, kScrWidth, kScrHeight);
|
||||
g_system->updateScreen();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user