git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dump out global methods
[swftools.git]
/
lib
/
example
/
sprites.c
diff --git
a/lib/example/sprites.c
b/lib/example/sprites.c
index
0598eda
..
569eca3
100644
(file)
--- a/
lib/example/sprites.c
+++ b/
lib/example/sprites.c
@@
-53,8
+53,8
@@
int main(int argc, char ** argv)
{ SWF swf;
RGBA rgb;
{ SWF swf;
RGBA rgb;
- LPTAG t;
- LPSHAPE s;
+ TAG* t;
+ SHAPE* s;
SRECT r;
U16 id_circle;
SRECT r;
U16 id_circle;
@@
-158,7
+158,7
@@
int main(int argc, char ** argv)
// swf_WriteCGI(&swf);
// 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);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);