diff options
author | Paul Gilbert | 2016-07-03 13:52:09 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:27:06 -0400 |
commit | 5ab33f117a0bc3451a1d30024208c45a2a548a4b (patch) | |
tree | d46420a6762b30dd8edb703b3846ebace3393d2c /engines/titanic/support/image_decoders.cpp | |
parent | d9e05e215c1ba8ab93530e7263b527c03fcc61c8 (diff) | |
download | scummvm-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.cpp | 4 |
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(); |