X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fops.c;h=e5e19af02a53356cb08fbcb19eb4b711e057d25e;hp=911bc477bad163493bbcc3c89305f83cdc4e790c;hb=b93de056e0b79f57c8f8fe22985b166c7d2c3dc3;hpb=a3eecab9e8f6a1b0b887f1bd082bd064f01ecffd diff --git a/lib/devices/ops.c b/lib/devices/ops.c index 911bc47..e5e19af 100644 --- a/lib/devices/ops.c +++ b/lib/devices/ops.c @@ -27,6 +27,7 @@ #include "../mem.h" #include "../gfxdevice.h" #include "../gfxtools.h" +#include "ops.h" typedef struct _internal { gfxdevice_t*out; @@ -110,7 +111,7 @@ void ops_fillbitmap(struct _gfxdevice*dev, gfxline_t*line, gfximage_t*img, gfxma gfximage_t img2; img2.width = img->width; img2.height = img->height; - img2.data = malloc(img->width*img->height*4); + img2.data = (gfxcolor_t*)malloc(img->width*img->height*4); int x,y; for(y=0;yheight;y++) { gfxcolor_t*in = &img->data[y*img->width]; @@ -142,7 +143,7 @@ void ops_drawchar(struct _gfxdevice*dev, gfxfont_t*font, int glyphnr, gfxcolor_t i->out->drawchar(i->out, font, glyphnr, color, matrix); } -void ops_drawlink(struct _gfxdevice*dev, gfxline_t*line, char*action) +void ops_drawlink(struct _gfxdevice*dev, gfxline_t*line, const char*action) { internal_t*i = (internal_t*)dev->internal; i->out->drawlink(i->out, line, action);