X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fhexfont.c;h=1712112937a315d92f348dba1776024e4dc74b6d;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=bf5695b8e661770e977e6ffa9848bdeaaf0676fc;hpb=4b38eb0cc0295a23f8c0567c7d151aaa1c4a767a;p=swftools.git diff --git a/lib/example/hexfont.c b/lib/example/hexfont.c index bf5695b..1712112 100644 --- a/lib/example/hexfont.c +++ b/lib/example/hexfont.c @@ -30,11 +30,11 @@ int main() { char* hex = "0123456789ABCDEF"; - SWFFONT* font = swf_LoadFont("Courier.swf"); + SWFFONT* font = swf_LoadFont("../../doc/Courier.swf"); SWFFONT hexfont; memset(&hexfont, 0, sizeof(hexfont)); - hexfont.name = "HexFont"; + hexfont.name = (char*)"HexFont"; hexfont.layout = malloc(sizeof(SWFLAYOUT)); hexfont.numchars = 256; hexfont.maxascii = 256;