[gimp] libgimpconfig: don't gimp_rgb_clamp() in gimp_scanner_parse_color()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpconfig: don't gimp_rgb_clamp() in gimp_scanner_parse_color()
- Date: Fri, 19 May 2017 00:06:54 +0000 (UTC)
commit 05874c1268c5d0f9e698848e7ef49a07c86e22b8
Author: Michael Natterer <mitch gimp org>
Date: Fri May 19 02:05:57 2017 +0200
libgimpconfig: don't gimp_rgb_clamp() in gimp_scanner_parse_color()
so config files can now contain oog RGB values too.
libgimpconfig/gimpscanner.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/libgimpconfig/gimpscanner.c b/libgimpconfig/gimpscanner.c
index 16a8c01..877ba1c 100644
--- a/libgimpconfig/gimpscanner.c
+++ b/libgimpconfig/gimpscanner.c
@@ -713,14 +713,11 @@ gimp_scanner_parse_color (GScanner *scanner,
GimpHSV hsv;
gimp_hsva_set (&hsv, col[0], col[1], col[2], col[3]);
- gimp_hsv_clamp (&hsv);
-
gimp_hsv_to_rgb (&hsv, &color);
}
else
{
gimp_rgba_set (&color, col[0], col[1], col[2], col[3]);
- gimp_rgb_clamp (&color);
}
token = G_TOKEN_RIGHT_PAREN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]