[gimp/gimp-2-8] libgimpwidets: don't pick transparent colors in gimp_pick_button_pick()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] libgimpwidets: don't pick transparent colors in gimp_pick_button_pick()
- Date: Sat, 16 Nov 2013 21:55:17 +0000 (UTC)
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]