diff options
author | Nicolas Noble <pixel@nobis-crew.org> | 2010-08-12 08:51:57 -0700 |
---|---|---|
committer | Nicolas Noble <pixel@nobis-crew.org> | 2010-08-12 08:51:57 -0700 |
commit | 9bb449a086721dad3656bb6a10eb5a7a731b5fc6 (patch) | |
tree | 7c471f569417a9190f4c842b7d9115c35ff0674b /im | |
parent | 5e4d2cef4d7003494fa38938d0d6d672720e765f (diff) |
Tentatively adding alpha support to tga output - doh.
Diffstat (limited to 'im')
-rwxr-xr-x | im/src/im_format_tga.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/im/src/im_format_tga.cpp b/im/src/im_format_tga.cpp index 86e968a..7c24a28 100755 --- a/im/src/im_format_tga.cpp +++ b/im/src/im_format_tga.cpp @@ -475,7 +475,7 @@ int imFileFormatTGA::WriteImageInfo() this->image_type = 1; break; case IM_RGB: - this->bpp = 24; + this->bpp = imColorModeHasAlpha(this->user_color_mode) ? 32 : 24; this->file_color_mode |= IM_PACKED; if (imStrEqual(this->compression, "RLE")) this->image_type = 10; |