diff options
author | Filippos Karapetis | 2008-09-11 09:37:42 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-09-11 09:37:42 +0000 |
commit | c6af2e81e86d952e64515c3bb2afa0296d2c4203 (patch) | |
tree | 38f03214352bafe5510d9741dd9456dc932d0a07 | |
parent | 02aad34ec79d84d86441369649bb9b0234575275 (diff) | |
download | scummvm-rg350-c6af2e81e86d952e64515c3bb2afa0296d2c4203.tar.gz scummvm-rg350-c6af2e81e86d952e64515c3bb2afa0296d2c4203.tar.bz2 scummvm-rg350-c6af2e81e86d952e64515c3bb2afa0296d2c4203.zip |
Cleanup
svn-id: r34490
-rw-r--r-- | engines/drascula/graphics.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index 8113f4557a..29f984c2b4 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -168,9 +168,7 @@ void DrasculaEngine::copyBackground(int xorg, int yorg, int xdes, int ydes, int dest += xdes + ydes * 320; src += xorg + yorg * 320; for (int x = 0; x < height; x++) { - memcpy(dest, src, width); - dest += 320; - src += 320; + memcpy(dest + 320 * x, src + 320 * x, width); } } @@ -226,9 +224,7 @@ void DrasculaEngine::updateScreen(int xorg, int yorg, int xdes, int ydes, int wi ptr += xdes + ydes * 320; buffer += xorg + yorg * 320; for (int x = 0; x < height; x++) { - memcpy(ptr, buffer, width); - ptr += 320; - buffer += 320; + memcpy(ptr + 320 * x, buffer + 320 * x, width); } _system->copyRectToScreen((const byte *)VGA, 320, 0, 0, 320, 200); |