[gimp/gimp-2-6] Bug 577301 – Dithering with transparency is broken for "positioned" method



commit 3061727198a4b055628978a73968008a31ef3272
Author: Sven Neumann <s neumann raumfeld com>
Date:   Mon Jul 20 22:48:13 2009 +0200

    Bug 577301 â?? Dithering with transparency is broken for "positioned" method
    
    Merged fix from master branch
    (commit cbfe411ea15a4dcc6d919123022ed37bcd951b60).

 app/core/gimpimage-convert.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpimage-convert.c b/app/core/gimpimage-convert.c
index 8f9fdc0..6e0a812 100644
--- a/app/core/gimpimage-convert.c
+++ b/app/core/gimpimage-convert.c
@@ -2959,7 +2959,7 @@ median_cut_pass2_fixed_dither_gray (QuantizeObj *quantobj,
 
                   if (alpha_dither)
                     {
-                      if ((src[ALPHA_G_PIX] << 6) < (255 * dmval))
+                      if (src[ALPHA_G_PIX] < dmval)
                         transparent = TRUE;
                     }
                   else
@@ -3193,7 +3193,7 @@ median_cut_pass2_fixed_dither_rgb (QuantizeObj *quantobj,
 
                   if (alpha_dither)
                     {
-                      if ((src[alpha_pix] << 6) < (255*dmval))
+                      if (src[alpha_pix] < dmval)
                         transparent = TRUE;
                     }
                   else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]