#include #include #include #include #include #include #include int xit=0; int showonly=0; int greycol,blackcol; int fcp4plane=0; int fcptransp=1; int fcporigo=0; int fcpsavepal=1; int fcpstyle=15; /* wing commander style */ int setback255=0; char filename[64]; char showname[16][64]; int shownum=0; int paletteset=0; int bx1,by1,bx2,by2; int pass; int picnum=0,picwrt=0; FILE *f1; FILE *f2; /* out */ union REGS reg; unsigned char far *vram=(char far *)0xa0000000; char apubuf[512]; unsigned char pal[768]; unsigned char pic[64000]; unsigned char pic2[64000]; unsigned char picorg[64000]; int backcol=0; #define SUBMAX 384 long picpos[SUBMAX],pics; /* for loading FCP:s */ long wpicpos[SUBMAX],wpics; /* for loading FCP:s */ #define pxor(xx,yy) *(vram+(xx)+(yy)*320)=255-*(vram+(xx)+(yy)*320) #define pset(xx,yy,zz) *(vram+(xx)+(yy)*320)=(zz) #define pget(xx,yy) *(vram+(xx)+(yy)*320) #define AOLOAD #include "lfcp.c" #include "sfcp.c" main(int argc,char *argv[]) { int a,b,c; *filename=0; for(a=1;a Switches:\n" "-h help\n" "-o0 set backg. color to 0\n" ); return(0); } else printf("FCP Animation Optimizer V2.0\n"); /* do some real stuff */ reg.x.ax=0x13; int86(0x10,®,®); { pass=0; bx1=by1=bx2=by2=0; memset(pic,backcol,64000); memset(picorg,backcol,64000); viewpic(); for(b=0;b