aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2011-02-13 01:50:27 -0500
committerMatthew Hoops2011-02-13 16:14:06 -0500
commit0be58b2694c2517c24a66035b3ea716bf9ac5fb6 (patch)
treef83730586d56c08ab3e9dea196746efc43161154 /engines/sci
parent87c81566b429693d96ef7da7196d5503c33cde91 (diff)
downloadscummvm-rg350-0be58b2694c2517c24a66035b3ea716bf9ac5fb6.tar.gz
scummvm-rg350-0be58b2694c2517c24a66035b3ea716bf9ac5fb6.tar.bz2
scummvm-rg350-0be58b2694c2517c24a66035b3ea716bf9ac5fb6.zip
SCI: Fix VMD coordinates
The suffix check for "vmd" failed for uppercase files.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kvideo.cpp7
1 files changed, 5 insertions, 2 deletions
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())