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