aboutsummaryrefslogtreecommitdiff
path: root/image/tga.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2014-07-10 21:37:05 +0200
committerJohannes Schickel2014-07-10 21:37:05 +0200
commita9e91aac0d45c1fb61ebadab6bdcf3604d3e1d8e (patch)
tree89edaf5d9d2eb85bb47ed0c4ef7a8a44577128ea /image/tga.cpp
parent666b881f16df31daa487f9a749fc3887c5a158e4 (diff)
parent46c933d9536fc79703792a00a88b5ee460877e0a (diff)
downloadscummvm-rg350-a9e91aac0d45c1fb61ebadab6bdcf3604d3e1d8e.tar.gz
scummvm-rg350-a9e91aac0d45c1fb61ebadab6bdcf3604d3e1d8e.tar.bz2
scummvm-rg350-a9e91aac0d45c1fb61ebadab6bdcf3604d3e1d8e.zip
Merge pull request #480 from klusark/patch-2
IMAGE: Fix TGA copy and paste error.
Diffstat (limited to 'image/tga.cpp')
-rw-r--r--image/tga.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/tga.cpp b/image/tga.cpp
index e251f64677..f22cfcb1ad 100644
--- a/image/tga.cpp
+++ b/image/tga.cpp
@@ -159,7 +159,7 @@ bool TGADecoder::readHeader(Common::SeekableReadStream &tga, byte &imageType, by
warning("Unsupported pixel depth: %d, %d", imageType, pixelDepth);
return false;
}
- } else if (imageType == TYPE_BW || TYPE_RLE_BW) {
+ } else if (imageType == TYPE_BW || imageType == TYPE_RLE_BW) {
if (pixelDepth == 8) {
_format = Graphics::PixelFormat(4, 8, 8, 8, 0, 16, 8, 0, 0);
} else {