mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
835863e397
commit
d2061f8398
@ -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>
|
2002-02-07 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/theme.c (INTENSITY): don't define the macro twice
|
* src/theme.c (INTENSITY): don't define the macro twice
|
||||||
|
@ -242,7 +242,7 @@ colorize_pixbuf (GdkPixbuf *orig,
|
|||||||
intensity = INTENSITY (src[0], src[1], src[2]) / 255.0;
|
intensity = INTENSITY (src[0], src[1], src[2]) / 255.0;
|
||||||
|
|
||||||
dr = dh;
|
dr = dh;
|
||||||
dg = ds;
|
dg = intensity;
|
||||||
db = intensity;
|
db = intensity;
|
||||||
hsv_to_rgb (&dr, &dg, &db);
|
hsv_to_rgb (&dr, &dg, &db);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user