mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
SHERLOCK: 3DO: Fix refreshing scene after showing portrait video
This commit is contained in:
parent
dff7941db7
commit
fcbf84455e
@ -1264,6 +1264,7 @@ void ScalpelEngine::showScummVMRestoreDialog() {
|
||||
}
|
||||
|
||||
bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::Point &pos, bool halfSize) {
|
||||
Scalpel3DOScreen &screen = *(Scalpel3DOScreen *)_screen;
|
||||
Scalpel3DOMovieDecoder *videoDecoder = new Scalpel3DOMovieDecoder();
|
||||
Graphics::Surface tempSurface;
|
||||
|
||||
@ -1277,8 +1278,6 @@ bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::P
|
||||
return false;
|
||||
}
|
||||
|
||||
_screen->_backBuffer1.blitFrom(*_screen); // save into backbuffer 1
|
||||
|
||||
if (halfSize) {
|
||||
// only for portrait videos, not for EA intro logo and such
|
||||
if ((framePos.x >= 8) && (framePos.y >= 8)) { // safety check
|
||||
@ -1413,7 +1412,10 @@ bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::P
|
||||
delete frameImage;
|
||||
}
|
||||
|
||||
_screen->blitFrom(_screen->_backBuffer1);
|
||||
// Restore scene
|
||||
screen._backBuffer1.blitFrom(screen._backBuffer2);
|
||||
_scene->updateBackground();
|
||||
screen.slamArea(0, 0, screen.w(), CONTROLS_Y);
|
||||
|
||||
return !skipVideo;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user