git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added class members, expression lefthands
[swftools.git]
/
lib
/
example
/
zlibtest.c
diff --git
a/lib/example/zlibtest.c
b/lib/example/zlibtest.c
index
6f0a19d
..
816f17d
100644
(file)
--- a/
lib/example/zlibtest.c
+++ b/
lib/example/zlibtest.c
@@
-36,12
+36,12
@@
int main ( int argc, char ** argv)
{ SWF swf;
int main ( int argc, char ** argv)
{ SWF swf;
- LPTAG t;
+ TAG* t;
RGBA rgb;
RGBA rgb;
- LPSHAPE s;
+ SHAPE* s;
MATRIX m;
SRECT r;
MATRIX m;
SRECT r;
- LPJPEGBITS jpeg;
+ JPEGBITS* jpeg;
int i,f;
int ls; // line style
int i,f;
int ls; // line style
@@
-199,7
+199,7
@@
int main ( int argc, char ** argv)
// swf_WriteCGI(&swf);
// swf_WriteCGI(&swf);
- f = open("zlibtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("zlibtest.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);