diff options
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 2dba66fbb3..3819b85116 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.recreate(srcSurf->w, srcSurf->h); + surface.recreate(srcSurf->w, srcSurf->h, 16); // Convert the decoded surface to the correct pixel format, and then copy it over surface.lock(); @@ -64,7 +64,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.recreate(srcSurf->w, srcSurf->h); + surface.recreate(srcSurf->w, srcSurf->h, 16); // Convert the decoded surface to the correct pixel format, and then copy it over surface.lock(); |