diff options
author | Johannes Schickel | 2013-08-02 23:12:09 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:31 +0200 |
commit | 28b74b14ec5444d9f2558c05cea67f3567322b51 (patch) | |
tree | a84ddab85ba5ad54787e11b95f465b3937bbd208 /engines/agos/vga_pn.cpp | |
parent | c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038 (diff) | |
download | scummvm-rg350-28b74b14ec5444d9f2558c05cea67f3567322b51.tar.gz scummvm-rg350-28b74b14ec5444d9f2558c05cea67f3567322b51.tar.bz2 scummvm-rg350-28b74b14ec5444d9f2558c05cea67f3567322b51.zip |
AGOS: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/agos/vga_pn.cpp')
-rw-r--r-- | engines/agos/vga_pn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/vga_pn.cpp b/engines/agos/vga_pn.cpp index 1e7b2ba060..dc364cd99b 100644 --- a/engines/agos/vga_pn.cpp +++ b/engines/agos/vga_pn.cpp @@ -155,7 +155,7 @@ void AGOSEngine::vc48_specialEffect() { if (getPlatform() == Common::kPlatformDOS) { if (num == 1) { Graphics::Surface *screen = _system->lockScreen(); - byte *dst = (byte *)screen->pixels; + byte *dst = (byte *)screen->getBasePtr(0, 0); for (uint h = 0; h < _screenHeight; h++) { for (uint w = 0; w < _screenWidth; w++) { @@ -205,7 +205,7 @@ void AGOSEngine_PN::clearVideoWindow(uint16 num, uint16 color) { uint16 yoffs = vlut[1]; Graphics::Surface *screen = _system->lockScreen(); - byte *dst = (byte *)screen->pixels + xoffs + yoffs * screen->pitch; + byte *dst = (byte *)screen->getBasePtr(xoffs, yoffs); for (uint h = 0; h < vlut[3]; h++) { memset(dst, color, vlut[2] * 16); dst += screen->pitch; |