Replace the proto directory with pre-processor macros that do the same thing
[synfig.git] / synfig-core / trunk / src / modules / mod_gif / trgt_gif.cpp
index 2203863..6b939af 100644 (file)
@@ -2,6 +2,8 @@
 /*!    \file trgt_gif.cpp
 **     \brief BMP Target Module
 **
+**     $Id$
+**
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
 **
@@ -50,13 +52,13 @@ SYNFIG_TARGET_INIT(gif);
 SYNFIG_TARGET_SET_NAME(gif,"gif");
 SYNFIG_TARGET_SET_EXT(gif,"gif");
 SYNFIG_TARGET_SET_VERSION(gif,"0.1");
-SYNFIG_TARGET_SET_CVS_ID(gif,"$Id: trgt_gif.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $");
+SYNFIG_TARGET_SET_CVS_ID(gif,"$Id$");
 
 /* === M E T H O D S ======================================================= */
 
 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),
@@ -130,7 +132,7 @@ gif::init()
        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();