#include <stdlib.h>
#include <stdio.h>
+#include <math.h>
#include <memory.h>
#include "../gfxdevice.h"
#include "../gfxtools.h"
}
l = (fontlist_t*)rfx_calloc(sizeof(fontlist_t));
l->font = font;
+ l->id = strdup(fontid);
l->next = 0;
if(last) {
last->next = l;
i->font = 0;
i->fontid = 0;
while(l) {
- if(!strcmp((char*)l->id, i->fontid)) {
+ if(!strcmp((char*)l->id, fontid)) {
i->font = l->font;
i->fontid = l->id;
break;
} else {
writePNG(filename, (unsigned char*)i->img, i->width, i->height);
}
+ return 1;
}
void*render_result_get(gfxresult_t*r, char*name)
{
res->destroy = render_result_destroy;
free(dev->internal); dev->internal = 0; i = 0;
+
+ /* TODO: free fonts */
+
return res;
}