From 4098307e4a8ba030fb058b9c75062511b9342732 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 28 Nov 2004 13:51:39 +0000 Subject: [PATCH] fixed SET_TO_ZERO logic. --- lib/modules/swftext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 9a97d87..8690989 100644 --- 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) { - 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); @@ -1024,7 +1024,7 @@ int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d } } 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); -- 1.7.10.4