diff options
author | Einar Johan Trøan Sømåen | 2012-06-03 02:32:36 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-03 02:32:36 +0200 |
commit | 15796f0eed66eb0e9e923ff2c59ce551ec518103 (patch) | |
tree | 9297c5409cef47f0906e6cc74f0c736252e61b19 /engines/wintermute | |
parent | f0a0f5c35c2571bcd6e1e26392d381d64092a1df (diff) | |
download | scummvm-rg350-15796f0eed66eb0e9e923ff2c59ce551ec518103.tar.gz scummvm-rg350-15796f0eed66eb0e9e923ff2c59ce551ec518103.tar.bz2 scummvm-rg350-15796f0eed66eb0e9e923ff2c59ce551ec518103.zip |
WINTERMUTE: Add JPEG-support to BSurfaceSDL
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/Base/BSurfaceSDL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/wintermute/Base/BSurfaceSDL.cpp b/engines/wintermute/Base/BSurfaceSDL.cpp index 391b83c7bb..8406985be8 100644 --- a/engines/wintermute/Base/BSurfaceSDL.cpp +++ b/engines/wintermute/Base/BSurfaceSDL.cpp @@ -34,6 +34,7 @@ //#include "SdlUtil.h"
#include "graphics/decoders/png.h"
#include "graphics/decoders/bmp.h"
+#include "graphics/decoders/jpeg.h"
#include "graphics/pixelformat.h"
#include "graphics/surface.h"
#include "engines/wintermute/graphics/transparentSurface.h"
@@ -81,6 +82,8 @@ HRESULT CBSurfaceSDL::Create(const char *Filename, bool default_ck, byte ck_red, imgDecoder = new Graphics::BitmapDecoder();
} else if (strFileName.hasSuffix(".tga")) {
imgDecoder = new WinterMute::TGA();
+ } else if (strFileName.hasSuffix(".jpg")) {
+ imgDecoder = new Graphics::JPEGDecoder();
} else {
error("CBSurfaceSDL::Create : Unsupported fileformat %s", Filename);
}
|