aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/image_decoders.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-03 13:52:09 -0400
committerPaul Gilbert2016-07-15 19:27:06 -0400
commit5ab33f117a0bc3451a1d30024208c45a2a548a4b (patch)
treed46420a6762b30dd8edb703b3846ebace3393d2c /engines/titanic/support/image_decoders.cpp
parentd9e05e215c1ba8ab93530e7263b527c03fcc61c8 (diff)
downloadscummvm-rg350-5ab33f117a0bc3451a1d30024208c45a2a548a4b.tar.gz
scummvm-rg350-5ab33f117a0bc3451a1d30024208c45a2a548a4b.tar.bz2
scummvm-rg350-5ab33f117a0bc3451a1d30024208c45a2a548a4b.zip
TITANIC: Adding more video surface methods
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 9fe55eb02b..4203dad97c 100644
--- a/engines/titanic/support/image_decoders.cpp
+++ b/engines/titanic/support/image_decoders.cpp
@@ -36,7 +36,7 @@ void CJPEGDecode::decode(OSVideoSurface &surface, const CString &name) {
// Resize the surface if necessary
if (!surface.hasSurface() || surface.getWidth() != srcSurf->w
|| surface.getHeight() != srcSurf->h)
- surface.resize(srcSurf->w, srcSurf->h);
+ surface.recreate(srcSurf->w, srcSurf->h);
// Convert the decoded surface to the correct pixel format, and then copy it over
surface.lock();
@@ -63,7 +63,7 @@ void CTargaDecode::decode(OSVideoSurface &surface, const CString &name) {
// Resize the surface if necessary
if (!surface.hasSurface() || surface.getWidth() != srcSurf->w
|| surface.getHeight() != srcSurf->h)
- surface.resize(srcSurf->w, srcSurf->h);
+ surface.recreate(srcSurf->w, srcSurf->h);
// Convert the decoded surface to the correct pixel format, and then copy it over
surface.lock();