Commit 641b1a3d authored by hybrid's avatar hybrid

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
parent e6e34950
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment