From d2061f83988d103fb685289f3d65830970220236 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 7 Feb 2002 05:46:40 +0000 Subject: [PATCH] use the intensity of the gray pixel for both saturation and value, not 2002-02-07 Havoc Pennington * src/theme.c (colorize_pixbuf): use the intensity of the gray pixel for both saturation and value, not just value. --- ChangeLog | 5 +++++ src/theme.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c057f9613..615be4719 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-07 Havoc Pennington + + * src/theme.c (colorize_pixbuf): use the intensity of the gray + pixel for both saturation and value, not just value. + 2002-02-07 Havoc Pennington * src/theme.c (INTENSITY): don't define the macro twice diff --git a/src/theme.c b/src/theme.c index 33beddcee..77f166e85 100644 --- a/src/theme.c +++ b/src/theme.c @@ -242,7 +242,7 @@ colorize_pixbuf (GdkPixbuf *orig, intensity = INTENSITY (src[0], src[1], src[2]) / 255.0; dr = dh; - dg = ds; + dg = intensity; db = intensity; hsv_to_rgb (&dr, &dg, &db);