SCI32: Fix kShowMovie calls crashing SCI32

This will all be overhauled in the future but for now it is best
not to crash when playing AVI/SEQ files.
This commit is contained in:
Colin Snover 2016-07-26 18:49:42 -05:00
parent 272505fec1
commit 4dc3b046c3

View File

@ -230,7 +230,7 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) {
// We also won't be copying the screen to the SCI screen...
if (g_system->getScreenFormat().bytesPerPixel != 1)
initGraphics(screenWidth, screenHeight, screenWidth > 320);
else {
else if (getSciVersion() < SCI_VERSION_2) {
g_sci->_gfxScreen->kernelSyncWithFramebuffer();
g_sci->_gfxPalette16->kernelSyncScreenPalette();
}