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:
Havoc Pennington 2002-02-07 05:15:37 +00:00 committed by Havoc Pennington
parent e605dff37f
commit 835863e397
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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 */