aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/image_decoders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/support/image_decoders.cpp')
-rw-r--r--engines/titanic/support/image_decoders.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/support/image_decoders.cpp b/engines/titanic/support/image_decoders.cpp
index 495d1d0982..2dba66fbb3 100644
--- a/engines/titanic/support/image_decoders.cpp
+++ b/engines/titanic/support/image_decoders.cpp
@@ -32,9 +32,9 @@ void CJPEGDecode::decode(OSVideoSurface &surface, const CString &name) {
// Use the ScucmmVM deoder to decode it
loadStream(*file.readStream());
const Graphics::Surface *srcSurf = getSurface();
-
+
// Resize the surface if necessary
- if (!surface.hasSurface() || surface.getWidth() != srcSurf->w
+ if (!surface.hasSurface() || surface.getWidth() != srcSurf->w
|| surface.getHeight() != srcSurf->h)
surface.recreate(srcSurf->w, srcSurf->h);