diff options
author | Travis Howell | 2009-07-06 06:21:59 +0000 |
---|---|---|
committer | Travis Howell | 2009-07-06 06:21:59 +0000 |
commit | dc0f6dce7698ce383ad7ca82f8ae1dcba984a044 (patch) | |
tree | 91bd92cb5835a456efa42361d5b9fd5a8bf619db /engines/agos/event.cpp | |
parent | 08df8dc2721808c7019f49d9051e2eebfe8dad9c (diff) | |
download | scummvm-rg350-dc0f6dce7698ce383ad7ca82f8ae1dcba984a044.tar.gz scummvm-rg350-dc0f6dce7698ce383ad7ca82f8ae1dcba984a044.tar.bz2 scummvm-rg350-dc0f6dce7698ce383ad7ca82f8ae1dcba984a044.zip |
Use graphics surfaces for screen buffers, and always use correct pitch when writing to the frameBuffer.
svn-id: r42163
Diffstat (limited to 'engines/agos/event.cpp')
-rw-r--r-- | engines/agos/event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp index ad7b079d53..b9c16d3d86 100644 --- a/engines/agos/event.cpp +++ b/engines/agos/event.cpp @@ -367,12 +367,12 @@ void AGOSEngine::drawStuff(const byte *src, uint xoffs) { const uint8 y = (getPlatform() == Common::kPlatformAtariST) ? 132 : 135; Graphics::Surface *screen = _system->lockScreen(); - byte *dst = (byte *)screen->pixels + y * _screenWidth + xoffs; + byte *dst = (byte *)screen->pixels + y * screen->pitch + xoffs; for (uint h = 0; h < 6; h++) { memcpy(dst, src, 4); src += 4; - dst += _screenWidth; + dst += screen->pitch; } _system->unlockScreen(); |