[gimp/gimp-2-8] libgimpwidets: don't pick transparent colors in gimp_pick_button_pick()



commit abd16f9b1e3e6bd9260f83241f5ff3035d64b090
Author: Michael Natterer <mitch gimp org>
Date:   Sat Nov 16 22:53:16 2013 +0100

    libgimpwidets: don't pick transparent colors in gimp_pick_button_pick()
    
    Full opacity in gimp_rgba_set_uchar() is 255, not 1.0.
    
    (cherry picked from commit f489ef2c5a77edb49e3062381cc207aa1698dedd)

 libgimpwidgets/gimppickbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimppickbutton.c b/libgimpwidgets/gimppickbutton.c
index 84b188c..51546eb 100644
--- a/libgimpwidgets/gimppickbutton.c
+++ b/libgimpwidgets/gimppickbutton.c
@@ -390,7 +390,7 @@ gimp_pick_button_pick (GdkScreen      *screen,
 
   cairo_surface_destroy (image);
 
-  gimp_rgba_set_uchar (&rgb, color[0], color[1], color[2], 1.0);
+  gimp_rgba_set_uchar (&rgb, color[0], color[1], color[2], 255);
 
 #else /* GDK_WINDOWING_QUARTZ */
 


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