gif::gif(const char *filename_):
filename(filename_),
- file( (filename=="-")?stdout:fopen(filename_,"wb") ),
+ file( (filename=="-")?stdout:fopen(filename_,POPEN_BINARY_WRITE_TYPE) ),
imagecount(0),
lossy(true),
else
fputc((0xF0+(rootsize-1))&~(1<<7),file.get()); // flags
- fputc(0,file.get()); // backgound color
+ fputc(0,file.get()); // background color
fputc(0,file.get()); // Pixel Aspect Ratio
DEBUGPOINT();