mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
don't define the macro twice
2002-02-07 Havoc Pennington <hp@pobox.com> * src/theme.c (INTENSITY): don't define the macro twice
This commit is contained in:
parent
e605dff37f
commit
835863e397
@ -1,3 +1,7 @@
|
||||
2002-02-07 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/theme.c (INTENSITY): don't define the macro twice
|
||||
|
||||
2002-02-07 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/theme.c (colorize_pixbuf): get algorithm right (use HSV/RGB
|
||||
|
@ -42,9 +42,7 @@
|
||||
#define ALPHA_TO_UCHAR(d) ((unsigned char) ((d) * 255))
|
||||
|
||||
#define DEBUG_FILL_STRUCT(s) memset ((s), 0xef, sizeof (*(s)))
|
||||
#define INTENSITY(r, g, b) (r * 0.30 + g * 0.59 + b * 0.11)
|
||||
#define CLAMP_UCHAR(v) ((guchar) (CLAMP (((int)v), (int)0, (int)255)))
|
||||
|
||||
#define INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11)
|
||||
|
||||
/* Converts from HSV to RGB */
|
||||
|
Loading…
Reference in New Issue
Block a user