diff options
author | Johannes Schickel | 2016-02-06 22:47:28 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-06 22:50:53 +0100 |
commit | 51d415733cc7823a0fc4e1694a8671713c9f0292 (patch) | |
tree | 6422d5ce5f5ea5be1e351c971a92a8cfd45f2720 /engines | |
parent | 74154f2101c55c261ad0113923fa9beafcbd387b (diff) | |
download | scummvm-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.cpp | 5 |
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) { |