From 0be58b2694c2517c24a66035b3ea716bf9ac5fb6 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 13 Feb 2011 01:50:27 -0500 Subject: SCI: Fix VMD coordinates The suffix check for "vmd" failed for uppercase files. --- engines/sci/engine/kvideo.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/sci/engine/kvideo.cpp') diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp index e905764d03..3392a9b9ab 100644 --- a/engines/sci/engine/kvideo.cpp +++ b/engines/sci/engine/kvideo.cpp @@ -50,6 +50,8 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) { uint16 pitch = videoDecoder->getWidth() * bytesPerPixel; uint16 screenWidth = g_system->getWidth(); uint16 screenHeight = g_system->getHeight(); + + videoState.fileName.toLowercase(); bool isVMD = videoState.fileName.hasSuffix(".vmd"); if (screenWidth == 640 && width <= 320 && height <= 240 && ((videoState.flags & kDoubled) || !isVMD)) { @@ -73,9 +75,10 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) { y = (screenHeight - height) / 2; } } else { - x = (screenWidth - width) / 2; - y = (screenHeight - height) / 2; + x = (screenWidth - width) / 2; + y = (screenHeight - height) / 2; } + bool skipVideo = false; if (videoDecoder->hasDirtyPalette()) -- cgit v1.2.3