diff options
author | Johannes Schickel | 2013-08-03 02:36:55 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:50 +0200 |
commit | 01daff0f1d5f222e7b892f3068e7ef6880b40346 (patch) | |
tree | eaa8d1fe75705861058dcd27ddf9931773879003 /engines/agos/vga_e2.cpp | |
parent | 0a1cbac76ac66876d187d2951c671a86a4812a59 (diff) | |
download | scummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.tar.gz scummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.tar.bz2 scummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.zip |
AGOS: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/agos/vga_e2.cpp')
-rw-r--r-- | engines/agos/vga_e2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/vga_e2.cpp b/engines/agos/vga_e2.cpp index b335c6b18a..4eb337c687 100644 --- a/engines/agos/vga_e2.cpp +++ b/engines/agos/vga_e2.cpp @@ -76,7 +76,7 @@ void AGOSEngine::vc45_setWindowPalette() { uint8 height = vlut[3]; if (num == 4) { - byte *dst = (byte *)_window4BackScn->getBasePtr(0, 0); + byte *dst = (byte *)_window4BackScn->getPixels(); for (uint8 h = 0; h < height; h++) { for (uint8 w = 0; w < width; w++) { @@ -378,7 +378,7 @@ void AGOSEngine::fullFade() { void AGOSEngine::vc56_fullScreen() { Graphics::Surface *screen = _system->lockScreen(); - byte *dst = (byte *)screen->getBasePtr(0, 0); + byte *dst = (byte *)screen->getPixels(); byte *src = _curVgaFile2 + 800; for (int i = 0; i < _screenHeight; i++) { |