From: kramm Date: Sat, 18 Dec 2004 22:35:35 +0000 (+0000) Subject: subtraced (0.5,0.5) from the texture position to get rid of the X-Git-Tag: release-0-6-3~75 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=709555ee7eee8fb8d876445e6341e2070366b4f2;p=swftools.git subtraced (0.5,0.5) from the texture position to get rid of the "duplicate first line" problem. --- diff --git a/src/png2swf.c b/src/png2swf.c index b1827ed..91cfb32 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -688,7 +688,9 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) swf_GetMatrix(NULL, &m); m.sx = 20 * 0x10000; m.sy = 20 * 0x10000; - fs = swf_ShapeAddBitmapFillStyle(s, &m, id, 0); + m.tx = -10; + m.ty = -10; + fs = swf_ShapeAddBitmapFillStyle(s, &m, id, 1); swf_SetU16(t, id + 1); // id