[gimp/gimp-2-8] file-tga: Simplify has_alpha expression
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] file-tga: Simplify has_alpha expression
- Date: Tue, 4 Dec 2012 19:15:46 +0000 (UTC)
commit b717e155d90d6c19f7f3acb2186f660819adb564
Author: Mukund Sivaraman <muks banu com>
Date: Wed Dec 5 00:45:36 2012 +0530
file-tga: Simplify has_alpha expression
plug-ins/common/file-tga.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-tga.c b/plug-ins/common/file-tga.c
index 95410bf..82ced38 100644
--- a/plug-ins/common/file-tga.c
+++ b/plug-ins/common/file-tga.c
@@ -927,10 +927,7 @@ read_line (FILE *fp,
}
else if (convert_cmap)
{
- gboolean has_alpha = (info->colorMapSize > 24) ||
- ((info->colorMapSize == 16 ||
- info->colorMapSize == 15) &&
- (info->alphaBits > 0));
+ gboolean has_alpha = (info->alphaBits > 0);
apply_colormap (row, buffer, info->width, convert_cmap, has_alpha);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]