diff options
author | Bastien Bouclet | 2019-01-22 15:02:05 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-04-28 07:59:14 +0200 |
commit | 0d5d04ca3a5473f24f45112bb40a009679024acc (patch) | |
tree | db509988aed8e0ef0f51052ca5154f771de8edb9 /engines/glk/picture.cpp | |
parent | 5196ae1cd49b879f0497c5ad863dfa6dfebe61c7 (diff) | |
download | scummvm-rg350-0d5d04ca3a5473f24f45112bb40a009679024acc.tar.gz scummvm-rg350-0d5d04ca3a5473f24f45112bb40a009679024acc.tar.bz2 scummvm-rg350-0d5d04ca3a5473f24f45112bb40a009679024acc.zip |
IMAGE: Allow setting the output pixel format to the JPEG decoder
Diffstat (limited to 'engines/glk/picture.cpp')
-rw-r--r-- | engines/glk/picture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp index a47d8bf3d6..306444449c 100644 --- a/engines/glk/picture.cpp +++ b/engines/glk/picture.cpp @@ -125,6 +125,7 @@ Picture *Pictures::load(uint32 id) { palette = png.getPalette(); palCount = png.getPaletteColorCount(); } else if (f.open(Common::String::format("pic%u.jpg", id))) { + jpg.setOutputPixelFormat(g_system->getScreenFormat()); jpg.loadStream(f); img = jpg.getSurface(); } else if (f.open(Common::String::format("pic%u.raw", id))) { |