[gimp/gimp-2-8] Bug 689535 - Color display filters - Color deficient vision aren't correct
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 689535 - Color display filters - Color deficient vision aren't correct
- Date: Tue, 3 Jan 2017 14:48:37 +0000 (UTC)
commit eb03ed00fdc21fd9800f02515bbc8eadc68c32f6
Author: Michael Natterer <mitch gimp org>
Date: Tue Jan 3 15:46:42 2017 +0100
Bug 689535 - Color display filters - Color deficient vision aren't correct
Fix gamma_lut to apply gamma in the right direction.
Found by Konstantin Kharlov.
modules/display-filter-color-blind.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/display-filter-color-blind.c b/modules/display-filter-color-blind.c
index 49daefb..cfc00c7 100644
--- a/modules/display-filter-color-blind.c
+++ b/modules/display-filter-color-blind.c
@@ -274,7 +274,7 @@ cdisplay_colorblind_init (CdisplayColorblind *colorblind)
gint i;
for (i = 0; i < 256; i++)
- colorblind->gamma_lut[i] = pow (i, 1.0 / gammaRGB);
+ colorblind->gamma_lut[i] = pow (i, gammaRGB);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]