1
0
Fork 0

use the intensity of the gray pixel for both saturation and value, not

2002-02-07  Havoc Pennington  <hp@pobox.com>

	* src/theme.c (colorize_pixbuf): use the intensity of the gray
	pixel for both saturation and value, not just value.
This commit is contained in:
Havoc Pennington 2002-02-07 05:46:40 +00:00 committed by Havoc Pennington
parent 835863e397
commit d2061f8398
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-02-07 Havoc Pennington <hp@pobox.com>
* 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 <hp@pobox.com>
* src/theme.c (INTENSITY): don't define the macro twice

View file

@ -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);