From: kramm <kramm>
Date: Wed, 19 Nov 2003 11:17:00 +0000 (+0000)
Subject: changed S16 to int, so that SET_TO_ZERO can be used.
X-Git-Tag: release-0-5-0~141
X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=2fc61b512b22b9e155195bb25eed1d706a33a179;p=swftools.git

changed S16 to int, so that SET_TO_ZERO can be used.
---

diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c
index ded2f65..459db83 100644
--- a/lib/modules/swfshape.c
+++ b/lib/modules/swfshape.c
@@ -395,7 +395,7 @@ int swf_ShapeSetMove(TAG * t,SHAPE * s,S32 x,S32 y)
   return 0;
 }
 
-int swf_ShapeSetStyle(TAG * t,SHAPE * s,U16 line,U16 fill0,U16 fill1)
+int swf_ShapeSetStyle(TAG * t,SHAPE * s,int line,int fill0,int fill1)
 { if ((!t)||(!s)) return -1;
     
   swf_SetBits(t,0,1);
@@ -414,11 +414,9 @@ int swf_ShapeSetStyle(TAG * t,SHAPE * s,U16 line,U16 fill0,U16 fill1)
    these defines are a workaround (they also reduce the maximal number of
    fill styles to 32768)
  */
-#define FILL_RESET 0x8000
-#define LINE_RESET 0x8000
 #define UNDEFINED_COORD 0x7fffffff
 
-int swf_ShapeSetAll(TAG * t,SHAPE * s,S32 x,S32 y,U16 line,U16 fill0,U16 fill1)
+int swf_ShapeSetAll(TAG * t,SHAPE * s,S32 x,S32 y,int line,int fill0,int fill1)
 { U8 b;
   U8 hasmove = 0;
   if ((!t)||(!s)) return -1;
diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c
index 996a71b..59a8dd9 100644
--- a/lib/modules/swftext.c
+++ b/lib/modules/swftext.c
@@ -665,7 +665,7 @@ void swf_FontFree(SWFFONT * f)
   free(f);
 }
 
-int swf_TextSetInfoRecord(TAG * t,SWFFONT * font,U16 size,RGBA * color,S16 dx,S16 dy)
+int swf_TextSetInfoRecord(TAG * t,SWFFONT * font,U16 size,RGBA * color,int dx,int dy)
 { U8 flags;
   if (!t) return -1;