X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fshape1.c;h=2520ce1ceac6677f1f1e00522dab84a419dd5a62;hb=3d73649bf0e39778e715a07da902d0a858065a43;hp=d56f087dfb4fa110cb5c4f3ef76d948efb970b5c;hpb=d193d733dfa41679452284e4e60e7237ac721cba;p=swftools.git diff --git a/lib/example/shape1.c b/lib/example/shape1.c index d56f087..2520ce1 100644 --- a/lib/example/shape1.c +++ b/lib/example/shape1.c @@ -6,9 +6,19 @@ Copyright (c) 2000, 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 */ #include #include @@ -18,10 +28,10 @@ int main (int argc,char ** argv) { SWF swf; - LPTAG t; + TAG* t; RGBA rgb; SRECT r; - LPSHAPE s; + SHAPE* s; S32 width=300,height = 300; int f,i,ls1,ls2; @@ -93,7 +103,7 @@ int main (int argc,char ** argv) // write movie to file - f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644); + f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);