git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added definejpeg3 extraction support
[swftools.git]
/
lib
/
modules
/
swftext.c
diff --git
a/lib/modules/swftext.c
b/lib/modules/swftext.c
index
9a97d87
..
8690989
100644
(file)
--- a/
lib/modules/swftext.c
+++ b/
lib/modules/swftext.c
@@
-1015,7
+1015,7
@@
int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d
swf_SetRGB(t, color);
}
if (dx) {
swf_SetRGB(t, color);
}
if (dx) {
- if(dx == SET_TO_ZERO) {
+ if(dx != SET_TO_ZERO) {
if(dx>32767 || dx<-32768)
fprintf(stderr, "Warning: Horizontal char position overflow: %d\n", dx);
swf_SetS16(t, dx);
if(dx>32767 || dx<-32768)
fprintf(stderr, "Warning: Horizontal char position overflow: %d\n", dx);
swf_SetS16(t, dx);
@@
-1024,7
+1024,7
@@
int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d
}
}
if (dy) {
}
}
if (dy) {
- if(dy == SET_TO_ZERO) {
+ if(dy != SET_TO_ZERO) {
if(dy>32767 || dy<-32768)
fprintf(stderr, "Warning: Vertical char position overflow: %d\n", dy);
swf_SetS16(t, dy);
if(dy>32767 || dy<-32768)
fprintf(stderr, "Warning: Vertical char position overflow: %d\n", dy);
swf_SetS16(t, dy);