From 251500bcdc5f8e159ad6793ccbe545abde19bc40 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 22 Nov 2004 19:16:47 +0000 Subject: [PATCH] don't write out "S16 out of bounds) warnings in case of SET_TO_ZERO is passed as coordinate to swf_TextSetInfoRecord(). --- lib/modules/swftext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 69edf6c..06d3eea 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -1015,11 +1015,13 @@ int swf_TextSetInfoRecord(TAG * t, SWFFONT * font, U16 size, RGBA * color, int d swf_SetRGB(t, color); } if (dx) { + dx &= ~SET_TO_ZERO; if(dx>32767 || dx<-32768) fprintf(stderr, "Warning: Horizontal char position overflow: %d\n", dx); swf_SetS16(t, dx); } if (dy) { + 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