aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/vga.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:36:55 +0200
committerJohannes Schickel2013-08-03 04:02:50 +0200
commit01daff0f1d5f222e7b892f3068e7ef6880b40346 (patch)
treeeaa8d1fe75705861058dcd27ddf9931773879003 /engines/agos/vga.cpp
parent0a1cbac76ac66876d187d2951c671a86a4812a59 (diff)
downloadscummvm-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.cpp')
-rw-r--r--engines/agos/vga.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp
index 5456174f5d..cc5ede5f2c 100644
--- a/engines/agos/vga.cpp
+++ b/engines/agos/vga.cpp
@@ -1179,7 +1179,7 @@ void AGOSEngine::vc32_saveScreen() {
if (getGameType() == GType_PN) {
Graphics::Surface *screen = _system->lockScreen();
byte *dst = getBackGround();
- byte *src = (byte *)screen->getBasePtr(0, 0);
+ byte *src = (byte *)screen->getPixels();
for (int i = 0; i < _screenHeight; i++) {
memcpy(dst, src, _screenWidth);
dst += _backGroundBuf->pitch;
@@ -1193,7 +1193,7 @@ void AGOSEngine::vc32_saveScreen() {
uint16 height = _videoWindows[4 * 4 + 3];
byte *dst = (byte *)_backGroundBuf->getBasePtr(xoffs, yoffs);
- byte *src = (byte *)_window4BackScn->getBasePtr(0, 0);
+ byte *src = (byte *)_window4BackScn->getPixels();
uint16 srcWidth = _videoWindows[4 * 4 + 2] * 16;
for (; height > 0; height--) {
memcpy(dst, src, width);
@@ -1247,7 +1247,7 @@ void AGOSEngine::clearVideoWindow(uint16 num, uint16 color) {
if (getGameType() == GType_ELVIRA1 && num == 3) {
Graphics::Surface *screen = _system->lockScreen();
- byte *dst = (byte *)screen->getBasePtr(0, 0);
+ byte *dst = (byte *)screen->getPixels();
for (int i = 0; i < _screenHeight; i++) {
memset(dst, color, _screenWidth);
dst += screen->pitch;