aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:20:26 +0000
committerEugene Sandulenko2010-06-15 10:20:26 +0000
commite8b72467e1472c42bb99c5eba84f2e9e059c1a3b (patch)
tree09a8d5431a47c4df0cb0fb72aa20cf2ed76f1684 /engines/drascula
parent27c27c82b1f29030af468142a452dc33e87e56f4 (diff)
downloadscummvm-rg350-e8b72467e1472c42bb99c5eba84f2e9e059c1a3b.tar.gz
scummvm-rg350-e8b72467e1472c42bb99c5eba84f2e9e059c1a3b.tar.bz2
scummvm-rg350-e8b72467e1472c42bb99c5eba84f2e9e059c1a3b.zip
Drascula: ease load on backend.
svn-id: r49709
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/graphics.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp
index 018b64d59f..28ade30601 100644
--- a/engines/drascula/graphics.cpp
+++ b/engines/drascula/graphics.cpp
@@ -205,9 +205,7 @@ void DrasculaEngine::copyRect(int xorg, int yorg, int xdes, int ydes, int width,
}
void DrasculaEngine::updateScreen(int xorg, int yorg, int xdes, int ydes, int width, int height, byte *buffer) {
- byte *screenBuffer = (byte *)_system->lockScreen()->pixels;
- copyBackground(xorg, yorg, xdes, ydes, width, height, buffer, screenBuffer);
- _system->unlockScreen();
+ _system->copyRectToScreen(buffer + xorg + yorg * 320, 320, xdes, ydes, width, height);
_system->updateScreen();
}