git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed trivial bug
[swftools.git]
/
lib
/
devices
/
text.c
diff --git
a/lib/devices/text.c
b/lib/devices/text.c
index
d5b4bbc
..
53f74d5
100644
(file)
--- a/
lib/devices/text.c
+++ b/
lib/devices/text.c
@@
-120,9
+120,10
@@
void text_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyphnr, gfxcolor_t*colo
} else if(xshift > i->lastadvance*1.3 || xshift<0) {
addchar(dev, 32);
}
} else if(xshift > i->lastadvance*1.3 || xshift<0) {
addchar(dev, 32);
}
+ int u;
if(font) {
i->lastadvance = font->glyphs[glyphnr].advance*matrix->m00;
if(font) {
i->lastadvance = font->glyphs[glyphnr].advance*matrix->m00;
- int u = font->glyphs[glyphnr].unicode;
+ u = font->glyphs[glyphnr].unicode;
} else {
u = glyphnr;
i->currentx = 0;i->currenty = 0;
} else {
u = glyphnr;
i->currentx = 0;i->currenty = 0;