diff options
author | Johannes Schickel | 2013-08-03 02:38:08 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:50 +0200 |
commit | c87472110996a1a1ac03692287ac121b572a0753 (patch) | |
tree | b8b328f07ebfdcc693271d252dfe4a4ff922d675 /engines/cge | |
parent | 01daff0f1d5f222e7b892f3068e7ef6880b40346 (diff) | |
download | scummvm-rg350-c87472110996a1a1ac03692287ac121b572a0753.tar.gz scummvm-rg350-c87472110996a1a1ac03692287ac121b572a0753.tar.bz2 scummvm-rg350-c87472110996a1a1ac03692287ac121b572a0753.zip |
CGE: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge_main.cpp | 2 | ||||
-rw-r--r-- | engines/cge/vga13h.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index c6c7acd1f5..ae4dee6090 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -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; diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index ddcbcea47c..c0407cab42 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -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(); } |