From 9bb449a086721dad3656bb6a10eb5a7a731b5fc6 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Thu, 12 Aug 2010 08:51:57 -0700 Subject: Tentatively adding alpha support to tga output - doh. --- im/src/im_format_tga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'im/src/im_format_tga.cpp') 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; -- cgit v1.2.3