diff options
author | Johannes Schickel | 2013-08-03 02:40:13 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:51 +0200 |
commit | 66fe0181ffc9dbd169e166d3e3684863dc619425 (patch) | |
tree | 13c8cc5d6dc0247dede3274c5eef7867f0a5e1de /engines/made/screenfx.cpp | |
parent | bcc4a3d0b839b7d750d7c6dbb022cab165a743e8 (diff) | |
download | scummvm-rg350-66fe0181ffc9dbd169e166d3e3684863dc619425.tar.gz scummvm-rg350-66fe0181ffc9dbd169e166d3e3684863dc619425.tar.bz2 scummvm-rg350-66fe0181ffc9dbd169e166d3e3684863dc619425.zip |
MADE: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/made/screenfx.cpp')
-rw-r--r-- | engines/made/screenfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/made/screenfx.cpp b/engines/made/screenfx.cpp index ad71f1fb49..d069308a4b 100644 --- a/engines/made/screenfx.cpp +++ b/engines/made/screenfx.cpp @@ -368,7 +368,7 @@ void ScreenEffects::vfx07(Graphics::Surface *surface, byte *palette, byte *newPa // "Screen slide in" right to left void ScreenEffects::vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int x = 8; x <= 320; x += 8) { - _screen->copyRectToScreen(surface->getBasePtr(0, 0), surface->pitch, 320 - x, 0, x, 200); + _screen->copyRectToScreen(surface->getPixels(), surface->pitch, 320 - x, 0, x, 200); _screen->updateScreenAndWait(25); } setPalette(palette); @@ -529,7 +529,7 @@ void ScreenEffects::vfx19(Graphics::Surface *surface, byte *palette, byte *newPa // "Screen slide in" bottom to top void ScreenEffects::vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int y = 4; y <= 200; y += 4) { - _screen->copyRectToScreen(surface->getBasePtr(0, 0), surface->pitch, 0, 200 - y, 320, y); + _screen->copyRectToScreen(surface->getPixels(), surface->pitch, 0, 200 - y, 320, y); _screen->updateScreenAndWait(25); } |