diff options
-rw-r--r-- | otherlibs/graph/color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/graph/color.c b/otherlibs/graph/color.c index 4e7c12e95..9a9ed7b54 100644 --- a/otherlibs/graph/color.c +++ b/otherlibs/graph/color.c @@ -20,11 +20,11 @@ struct color_cache_entry { unsigned long pixel; /* Pixel value */ }; -#define Color_cache_size 64 +#define Color_cache_size 256 static struct color_cache_entry color_cache[Color_cache_size]; #define Empty (-1) #define Hash_rgb(r,g,b) \ - ((((r) & 0xC0) >> 2) + (((g) & 0xC0) >> 4) + (((b) & 0xC0) >> 6)) + (((r) & 0xE0) + (((g) & 0xE0) >> 3) + (((b) & 0xC0) >> 6)) void gr_init_color_cache(void) { |