X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=459db83ab65d9a61777d2515764a5877fe5e37ce;hb=2fc61b512b22b9e155195bb25eed1d706a33a179;hp=5b45d261148349e13bfcacf724f8e77f2c1a00e8;hpb=b3f71329c1865093a9f0183086149e52c8f804c4;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 5b45d26..459db83 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -7,9 +7,19 @@ Copyright (c) 2001 Rainer Böhme - This file is distributed under the GPL, see file COPYING for details + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -*/ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define SF_MOVETO 0x01 #define SF_FILL0 0x02 @@ -385,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); @@ -404,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;