X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_bmp%2Ftrgt_bmp.cpp;h=a750f18420959414788b49e0eba2c7ed1a94f361;hb=334e15ce6c4d9b1f30a168a55e7ef4d31320d568;hp=cb51db2585505612fd2d8ab8d00701d96899a88c;hpb=99b75ef1bb279e2314516f922f05696263d5bd27;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_bmp/trgt_bmp.cpp b/synfig-core/trunk/src/modules/mod_bmp/trgt_bmp.cpp index cb51db2..a750f18 100644 --- a/synfig-core/trunk/src/modules/mod_bmp/trgt_bmp.cpp +++ b/synfig-core/trunk/src/modules/mod_bmp/trgt_bmp.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 @@ -176,14 +177,14 @@ bmp::start_frame(synfig::ProgressCallback *callback) 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+_(" (animated)")); } else { - file=fopen(filename.c_str(),"wb"); + file=fopen(filename.c_str(),POPEN_BINARY_WRITE_TYPE); if(callback)callback->task(filename); }