src/font.c

changeset 67
0b96fe6d6b5e
parent 66
8297afa1c29c
equal deleted inserted replaced
66:8297afa1c29c 67:0b96fe6d6b5e
66 void asc_font_cache_init(void) { 66 void asc_font_cache_init(void) {
67 assert(asc_font_cache == NULL); 67 assert(asc_font_cache == NULL);
68 asc_font_cache = cxArrayListCreateSimple( 68 asc_font_cache = cxArrayListCreateSimple(
69 sizeof(struct asc_font_cache_entry), 16 69 sizeof(struct asc_font_cache_entry), 16
70 ); 70 );
71 asc_font_cache->simple_destructor = (cx_destructor_func) asc_font_unload; 71 cxDefineDestructor(asc_font_cache, asc_font_unload);
72 } 72 }
73 73
74 void asc_font_cache_destroy(void) { 74 void asc_font_cache_destroy(void) {
75 assert(asc_font_cache != NULL); 75 assert(asc_font_cache != NULL);
76 cxListDestroy(asc_font_cache); 76 cxListDestroy(asc_font_cache);

mercurial