Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-core / trunk / src / modules / mod_jpeg / trgt_jpeg.cpp
index 013a99a..3ff854d 100644 (file)
@@ -6,6 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2007 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -110,14 +111,14 @@ jpeg_trgt::start_frame(synfig::ProgressCallback *callback)
        else if(multi_image)
        {
                String newfilename(filename_sans_extension(filename) +
-                                                  etl::strprintf("%04d",imagecount) +
+                                                  etl::strprintf(".%04d",imagecount) +
                                                   filename_extension(filename));
-               file=fopen(newfilename.c_str(),"wb");
+               file=fopen(newfilename.c_str(),POPEN_BINARY_WRITE_TYPE);
                if(callback)callback->task(newfilename);
        }
        else
        {
-               file=fopen(filename.c_str(),"wb");
+               file=fopen(filename.c_str(),POPEN_BINARY_WRITE_TYPE);
                if(callback)callback->task(filename);
        }