X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Frender.c;h=8e0ada0be252d24701d902195ab7d4403f02a084;hp=cdba4421ec4d7ff151de07ca953014f62026b5e5;hb=2391d7ae5d8a145a250a8b80ab8c93ba74eba030;hpb=05861649cece70d65e7ba84c3696039c0143ce9c diff --git a/lib/devices/render.c b/lib/devices/render.c index cdba442..8e0ada0 100644 --- a/lib/devices/render.c +++ b/lib/devices/render.c @@ -822,7 +822,7 @@ char*gfximage_asXPM(gfximage_t*img, int depth) int d= 256/depth; char*str = (char*)malloc(img->width*img->height*4 + 500 + 16*depth*depth*depth); char*p = str; - p+= sprintf(p, "static char *noname[] = {\n\"%d %d 262144 3\",\n"); + p+= sprintf(p, "static char *noname[] = {\n\"%d %d 262144 3\",\n", img->width, img->height); int r,g,b; for(r=0;r