From: kramm Date: Tue, 22 Apr 2008 09:29:34 +0000 (+0000) Subject: fixed char position overflow problem X-Git-Tag: buttons-working~241 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=9b4b8074e77d175ec0e723ff3c69ca400c8dfc21 fixed char position overflow problem --- 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)