Another merge that didn't work properly...

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1433 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-07-30 22:45:02 +00:00
parent e6e34950af
commit 641b1a3d56
1 changed files with 6 additions and 7 deletions

View File

@ -82,12 +82,11 @@ public:
video::IImage* image = Device->getVideoDriver()->createScreenShot();
if (image)
{
snprintf ( (c8*) Filename.c_str() , 255,
"%s_shot%04d.jpg",
FilenameTemplate.c_str (),
Number++
);
Device->getVideoDriver()->writeImageToFile(image, Filename.c_str(), 85 );
c8 buf[256];
snprintf(buf, 256, "%s_shot%04d.jpg",
FilenameTemplate.c_str(),
++Number);
Device->getVideoDriver()->writeImageToFile(image, buf, 85 );
image->drop();
}
}
@ -97,7 +96,7 @@ public:
private:
IrrlichtDevice *Device;
u32 Number;
const core::stringc FilenameTemplate;
core::stringc FilenameTemplate;
};