diff --git a/ChangeLog b/ChangeLog index 3d21c592b..c057f9613 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-02-07 Havoc Pennington + + * src/theme.c (INTENSITY): don't define the macro twice + 2002-02-07 Havoc Pennington * src/theme.c (colorize_pixbuf): get algorithm right (use HSV/RGB diff --git a/src/theme.c b/src/theme.c index cff6b1eb5..33beddcee 100644 --- a/src/theme.c +++ b/src/theme.c @@ -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 */