aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-06 22:47:28 +0100
committerJohannes Schickel2016-02-06 22:50:53 +0100
commit51d415733cc7823a0fc4e1694a8671713c9f0292 (patch)
tree6422d5ce5f5ea5be1e351c971a92a8cfd45f2720 /engines
parent74154f2101c55c261ad0113923fa9beafcbd387b (diff)
downloadscummvm-rg350-51d415733cc7823a0fc4e1694a8671713c9f0292.tar.gz
scummvm-rg350-51d415733cc7823a0fc4e1694a8671713c9f0292.tar.bz2
scummvm-rg350-51d415733cc7823a0fc4e1694a8671713c9f0292.zip
SCI: Implement kernelSyncWithFramebuffer using copyFromScreen.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/screen.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index a76f462c7b..ea65d118ea 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -289,10 +289,7 @@ void GfxScreen::copyFromScreen(byte *buffer) {
}
void GfxScreen::kernelSyncWithFramebuffer() {
- // TODO this ignores the pitch
- Graphics::Surface *screen = g_system->lockScreen();
- memcpy(_displayScreen, screen->getPixels(), _displayPixels);
- g_system->unlockScreen();
+ copyFromScreen(_displayScreen);
}
void GfxScreen::copyRectToScreen(const Common::Rect &rect) {