git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed mac os x imaging paths in ./configure
[swftools.git]
/
lib
/
example
/
shape1.c
diff --git
a/lib/example/shape1.c
b/lib/example/shape1.c
index
24292f9
..
2520ce1
100644
(file)
--- a/
lib/example/shape1.c
+++ b/
lib/example/shape1.c
@@
-28,10
+28,10
@@
int main (int argc,char ** argv)
{ SWF swf;
int main (int argc,char ** argv)
{ SWF swf;
- LPTAG t;
+ TAG* t;
RGBA rgb;
SRECT r;
RGBA rgb;
SRECT r;
- LPSHAPE s;
+ SHAPE* s;
S32 width=300,height = 300;
int f,i,ls1,ls2;
S32 width=300,height = 300;
int f,i,ls1,ls2;
@@
-103,7
+103,7
@@
int main (int argc,char ** argv)
// write movie to file
// 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);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);