X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Ffile.c;h=3b83c290d6efbf4424701d63e4595094cc76d12a;hb=a2388a02b2fb072a77d313f83e0f032c6bb031d8;hp=72290e83472fe4736780c4994f7eb2ca16a2e421;hpb=03cce7a7a066b1f49c7f46986b631aa25b051155;p=swftools.git diff --git a/lib/devices/file.c b/lib/devices/file.c index 72290e8..3b83c29 100644 --- a/lib/devices/file.c +++ b/lib/devices/file.c @@ -102,12 +102,12 @@ void file_fillgradient(struct _gfxdevice*dev, gfxline_t*line, gfxgradient_t*grad dumpline(i->fi, line); } -void file_addfont(struct _gfxdevice*dev, char*fontid, gfxfont_t*font) +void file_addfont(struct _gfxdevice*dev, gfxfont_t*font) { internal_t*i = (internal_t*)dev->internal; } -void file_drawchar(struct _gfxdevice*dev, char*fontid, int glyph, gfxcolor_t*color, gfxmatrix_t*matrix) +void file_drawchar(struct _gfxdevice*dev, gfxfont_t*font, int glyph, gfxcolor_t*color, gfxmatrix_t*matrix) { internal_t*i = (internal_t*)dev->internal; } @@ -201,6 +201,9 @@ void gfxdevice_file_init(gfxdevice_t*dev, char*filename) { internal_t*i = malloc(sizeof(internal_t)); memset(dev, 0, sizeof(gfxdevice_t)); + + dev->name = "file"; + dev->internal = i; dev->setparameter = file_setparameter;