Diff for games/_shared/my-graph.c between version 1.5 and 1.6
| version 1.5, 2003/07/17 21:53:31 |
version 1.6, 2003/07/18 08:17:35 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: games/_shared/my-graph.c,v 1.4 2003/07/11 11:41:46 nepto Exp $ */ |
/* $Platon: games/_shared/my-graph.c,v 1.5 2003/07/17 21:53:31 nepto Exp $ */ |
| |
|
| #include <stdio.h> |
#include <stdio.h> |
| #include <stdlib.h> |
#include <stdlib.h> |
| Line 88 static void *putimage_BGI_cache_pointers |
|
| Line 88 static void *putimage_BGI_cache_pointers |
|
| static void *putimage_BGI_cache_data[PUTIMAGE_BGI_CACHE_SIZE]; |
static void *putimage_BGI_cache_data[PUTIMAGE_BGI_CACHE_SIZE]; |
| static int putimage_BGI_cache_size = 0; |
static int putimage_BGI_cache_size = 0; |
| |
|
| static void putimage_BGI_cache_free(void) |
static void putimage_BGI_cache_free(void) /* {{{ */ |
| { |
{ |
| register int i; |
register int i; |
| for (i = 0; i < putimage_BGI_cache_size; i++) { |
for (i = 0; i < putimage_BGI_cache_size; i++) { |
| Line 100 static void putimage_BGI_cache_free(void |
|
| Line 100 static void putimage_BGI_cache_free(void |
|
| fprintf(stderr, "putimage_BGI_cache_free(): %d entries freed\n", |
fprintf(stderr, "putimage_BGI_cache_free(): %d entries freed\n", |
| putimage_BGI_cache_size); |
putimage_BGI_cache_size); |
| #endif |
#endif |
| } |
putimage_BGI_cache_size = 0; /* To prevent double free */ |
| |
} /* }}} */ |
| |
|
| void putimage_BGI_cached(const int x, const int y, void *image, const int op) /* {{{ */ |
void putimage_BGI_cached(const int x, const int y, void *image, const int op) /* {{{ */ |
| { |
{ |
Platon Group <platon@platon.org> http://platon.org/
|
|