Augmentation de la taille du cache des couleurs jusqu'à 256 couleurs.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1915 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Pierre Weis 1998-04-14 14:16:10 +00:00
parent e08ab0bb94
commit 13637589b2
1 changed files with 2 additions and 2 deletions

View File

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