git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
483357a
)
fixed char position overflow problem
author
kramm
<kramm>
Tue, 22 Apr 2008 09:29:34 +0000
(09:29 +0000)
committer
kramm
<kramm>
Tue, 22 Apr 2008 09:29:34 +0000
(09:29 +0000)
lib/devices/swf.c
patch
|
blob
|
history
diff --git
a/lib/devices/swf.c
b/lib/devices/swf.c
index
1abc540
..
9f1c224
100644
(file)
--- 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("<verbose> 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)