From 9b4b8074e77d175ec0e723ff3c69ca400c8dfc21 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 22 Apr 2008 09:29:34 +0000 Subject: [PATCH] fixed char position overflow problem --- lib/devices/swf.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 1.7.10.4