X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxfont.c;h=920796d21c124abfc89d6320865eac6dae0d13bd;hp=a310bfa38833e04d8af5b29f10800bcf56aec9f5;hb=d7367b3ec772ea163ebca6b7497639a0cb45c20c;hpb=22aff003c999ce595128ce66ab4c5369b0b515c2 diff --git a/lib/gfxfont.c b/lib/gfxfont.c index a310bfa..920796d 100644 --- a/lib/gfxfont.c +++ b/lib/gfxfont.c @@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include +#include #include "../config.h" #include "gfxdevice.h" #include "gfxtools.h" @@ -393,7 +395,7 @@ gfxfont_t* gfxfont_load(const char*id, const char*filename, unsigned int flags, } l = l->next; } - if(!ok && !name) { + if(!ok && !hasname) { gfxline_free(font->glyphs[font->num_glyphs].line); font->glyphs[font->num_glyphs].line = 0; font->glyphs[font->num_glyphs].advance = 0; @@ -492,7 +494,7 @@ gfxfont_t* gfxfont_load(const char*id, const char*filename, unsigned int flags, } #else -gfxfont_t* gfxfont_load(char*id, char*filename, unsigned int flags, double quality) +gfxfont_t* gfxfont_load(const char*id, const char*filename, unsigned int flags, double quality) { fprintf(stderr, "No freetype support compiled in! Not able to load %s\n", filename); return 0;