[gimp/gimp-2-8] Bug 766250 - Gamut warning color incorrect, behavior reversion
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 766250 - Gamut warning color incorrect, behavior reversion
- Date: Sun, 22 May 2016 20:43:41 +0000 (UTC)
commit 5fae26020bbb8ccff778e15d2d0f27bb828e25d5
Author: Michael Natterer <mitch gimp org>
Date: Sun May 22 22:42:32 2016 +0200
Bug 766250 - Gamut warning color incorrect, behavior reversion
Need to multiply the guchar values by 256 for lcms2's
cmsSetAlarmCodes() because it expects 16 bit values.
modules/display-filter-lcms.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/display-filter-lcms.c b/modules/display-filter-lcms.c
index e3052d7..1cbd21d 100644
--- a/modules/display-filter-lcms.c
+++ b/modules/display-filter-lcms.c
@@ -451,9 +451,9 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
#ifdef HAVE_LCMS1
cmsSetAlarmCodes (r, g, b);
#else
- alarmCodes[0] = (cmsUInt16Number) r;
- alarmCodes[1] = (cmsUInt16Number) g;
- alarmCodes[2] = (cmsUInt16Number) b;
+ alarmCodes[0] = (cmsUInt16Number) r * 256;
+ alarmCodes[1] = (cmsUInt16Number) g * 256;
+ alarmCodes[2] = (cmsUInt16Number) b * 256;
cmsSetAlarmCodes (alarmCodes);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]