From 2d8b605a3f0f48e0299690a64471c91306bd6442 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 25 Dec 2016 10:57:21 -0500 Subject: [PATCH] ... --- coders/tga.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/coders/tga.c b/coders/tga.c index 0b8a47d92..71e43858b 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -246,14 +246,10 @@ static Image *ReadTGAImage(const ImageInfo *image_info, if ((tga_info.image_type != TGAColormap) && (tga_info.image_type != TGARLEColormap)) image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 : - (tga_info.bits_per_pixel <= 16) ? 5 : - (tga_info.bits_per_pixel == 24) ? 8 : - (tga_info.bits_per_pixel == 32) ? 8 : 8); + (tga_info.bits_per_pixel <= 16) ? 5 : 8); else image->depth=(size_t) ((tga_info.colormap_size <= 8) ? 8 : - (tga_info.colormap_size <= 16) ? 5 : - (tga_info.colormap_size == 24) ? 8 : - (tga_info.colormap_size == 32) ? 8 : 8); + (tga_info.colormap_size <= 16) ? 5 : 8); if ((tga_info.image_type == TGAColormap) || (tga_info.image_type == TGAMonochrome) || (tga_info.image_type == TGARLEColormap) || -- 2.40.0