aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-09-15 18:08:34 +0200
committerEinar Johan Trøan Sømåen2012-09-15 18:08:34 +0200
commit25aa19b2721e2f776d75219272217106817c95b3 (patch)
treef5417bf7b5b369649fd122173cc52f21cacaba62 /graphics
parentb1ec9280fd757184ce8262d3f25b3cf75fed19ec (diff)
downloadscummvm-rg350-25aa19b2721e2f776d75219272217106817c95b3.tar.gz
scummvm-rg350-25aa19b2721e2f776d75219272217106817c95b3.tar.bz2
scummvm-rg350-25aa19b2721e2f776d75219272217106817c95b3.zip
GRAPHICS: Reinsert attributeBits as a comment to the TGA-decoder
Diffstat (limited to 'graphics')
-rw-r--r--graphics/decoders/tga.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/decoders/tga.cpp b/graphics/decoders/tga.cpp
index 0c07770d75..c3b9d84055 100644
--- a/graphics/decoders/tga.cpp
+++ b/graphics/decoders/tga.cpp
@@ -148,7 +148,7 @@ bool TGADecoder::readHeader(Common::SeekableReadStream &tga, byte &imageType, by
// HACK: According to the spec, attributeBits should determine the amount
// of alpha-bits, however, as the game files that use this decoder seems
// to ignore that fact, we force the amount to 8 for 32bpp files for now.
- _format = PixelFormat(4, 8, 8, 8, 8, 16, 8, 0, 24);
+ _format = PixelFormat(4, 8, 8, 8, /* attributeBits */ 8, 16, 8, 0, 24);
} else if (pixelDepth == 16 && imageType == TYPE_TRUECOLOR) {
// 16bpp TGA is ARGB1555
_format = PixelFormat(2, 5, 5, 5, attributeBits, 10, 5, 0, 15);