don't write out "S16 out of bounds) warnings in case of SET_TO_ZERO is
authorkramm <kramm>
Mon, 22 Nov 2004 19:16:47 +0000 (19:16 +0000)
committerkramm <kramm>
Mon, 22 Nov 2004 19:16:47 +0000 (19:16 +0000)
passed as coordinate to swf_TextSetInfoRecord().

lib/modules/swftext.c

index 69edf6c..06d3eea 100644 (file)
@@ -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);