[gimp] 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] libgimpwidets: don't pick transparent colors in gimp_pick_button_pick()
- Date: Sat, 16 Nov 2013 21:54:30 +0000 (UTC)
commit f489ef2c5a77edb49e3062381cc207aa1698dedd
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.
libgimpwidgets/gimppickbutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimppickbutton.c b/libgimpwidgets/gimppickbutton.c
index 968a2d3..58cf188 100644
--- a/libgimpwidgets/gimppickbutton.c
+++ b/libgimpwidgets/gimppickbutton.c
@@ -380,7 +380,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]