X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fsprites.c;h=569eca33b5eb964beb96c0671742782d7eb12ac8;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=60378568faf382b41ad5b705f8855e8230ced0aa;hpb=3876a9103216c4774c284db2a151c94362f7fa15;p=swftools.git diff --git a/lib/example/sprites.c b/lib/example/sprites.c index 6037856..569eca3 100644 --- a/lib/example/sprites.c +++ b/lib/example/sprites.c @@ -18,9 +18,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 */ #include #include @@ -43,8 +53,8 @@ int main(int argc, char ** argv) { SWF swf; RGBA rgb; - LPTAG t; - LPSHAPE s; + TAG* t; + SHAPE* s; SRECT r; U16 id_circle; @@ -148,7 +158,7 @@ int main(int argc, char ** argv) // swf_WriteCGI(&swf); - f = open("sprites.swf",O_RDWR|O_CREAT|O_TRUNC,0644); + f = open("sprites.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);