X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=9f1c224b056e5703ad549e178516b41fa70a9e7f;hb=1328e56e38a5148fb51eb0225c5570bc6d4645b4;hp=1abc540d62033f50eb89c32bc444f084cd7d782b;hpb=483357a827efabc1f0d3e5df1e4297fad2a0436b;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 1abc540..9f1c224 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -2825,6 +2825,9 @@ static void swf_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyph, gfxcolor_t* msg(" Moving character origin to %f %f\n", matrix->tx, matrix->ty); endtext(dev); setfontscale(dev, matrix->m00, matrix->m01, matrix->m10, matrix->m11, matrix->tx, matrix->ty, 1); + /* since we just moved the char origin to the current char's position, + it now has the relative position (0,0) */ + x = y = 0; } if(i->shapeid>=0)