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 && and ||
[swftools.git]
/
lib
/
example
/
transtest.c
diff --git
a/lib/example/transtest.c
b/lib/example/transtest.c
index
15d34c5
..
0e835be
100644
(file)
--- a/
lib/example/transtest.c
+++ b/
lib/example/transtest.c
@@
-32,13
+32,13
@@
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 = 800,height = 800;
int fs,ls; // line & fillstyle
S32 width = 800,height = 800;
int fs,ls; // line & fillstyle
- LPJPEGBITS jpeg;
+ JPEGBITS* jpeg;
MATRIX m;
int f,i,j,frame;
MATRIX m;
int f,i,j,frame;
@@
-151,7
+151,7
@@
int main (int argc,char ** argv)
// swf_WriteCGI(&swf);
// swf_WriteCGI(&swf);
- f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("transtest.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);