X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_jpeg%2Ftrgt_jpeg.cpp;h=3ff854dcbb6825dbcc3f89e28192d25affb2b97a;hb=7d00f13f8a31e4a329736180412bf76af666f4f5;hp=013a99a25b3ddb14d5e864c0055680e6eff14fd5;hpb=99b75ef1bb279e2314516f922f05696263d5bd27;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_jpeg/trgt_jpeg.cpp b/synfig-core/trunk/src/modules/mod_jpeg/trgt_jpeg.cpp index 013a99a..3ff854d 100644 --- a/synfig-core/trunk/src/modules/mod_jpeg/trgt_jpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_jpeg/trgt_jpeg.cpp @@ -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); }