aboutsummaryrefslogtreecommitdiff
path: root/graphics/decoders
diff options
context:
space:
mode:
authorMatthew Hoops2012-03-19 21:54:37 -0400
committerMatthew Hoops2012-03-19 21:54:37 -0400
commitfce0e8c45b53018e5c9a2cab38c02a782872f22b (patch)
tree0547ec0481af54007db224e4293799d60f3bc95d /graphics/decoders
parenta2ad364615784c3ceffd5533b548ccff195c32ae (diff)
downloadscummvm-rg350-fce0e8c45b53018e5c9a2cab38c02a782872f22b.tar.gz
scummvm-rg350-fce0e8c45b53018e5c9a2cab38c02a782872f22b.tar.bz2
scummvm-rg350-fce0e8c45b53018e5c9a2cab38c02a782872f22b.zip
GRAPHICS: Fix PICT 16bpp
Diffstat (limited to 'graphics/decoders')
-rw-r--r--graphics/decoders/pict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/decoders/pict.cpp b/graphics/decoders/pict.cpp
index f8b2553ea0..4c21cffe38 100644
--- a/graphics/decoders/pict.cpp
+++ b/graphics/decoders/pict.cpp
@@ -365,7 +365,7 @@ void PICTDecoder::unpackBitsRect(Common::SeekableReadStream &stream, bool hasPal
_outputSurface->create(width, height, PixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0));
for (uint16 y = 0; y < _outputSurface->h; y++)
for (uint16 x = 0; x < _outputSurface->w; x++)
- WRITE_UINT16(_outputSurface->getBasePtr(x, y), READ_BE_UINT16(buffer + (y * _outputSurface->w + x) * 2));
+ WRITE_UINT16(_outputSurface->getBasePtr(x, y), READ_UINT16(buffer + (y * _outputSurface->w + x) * 2));
break;
case 3:
// Convert from 24-bit (planar!) to whatever surface we need