Skip to content

Commit

Permalink
SCI: Implement kernelSyncWithFramebuffer using copyFromScreen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Feb 6, 2016
1 parent 74154f2 commit 51d4157
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engines/sci/graphics/screen.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 51d4157

Please sign in to comment.