Api was too confusing for people.

This commit is contained in:
Matthew Parlane
2013-11-17 10:34:34 +13:00
parent 2025f00f88
commit 71d70d896f
7 changed files with 16 additions and 8 deletions

View File

@ -145,6 +145,8 @@ void SWRenderer::DrawTexture(u8 *texture, int width, int height)
u8 *data = new u8[width * 4 * height];
memcpy(data, texture, sizeof(u8) * 4 * width * height);
TextureToPng(data, width*4, s_sScreenshotName.c_str(), width, height, false);
delete[] data;
// Reset settings
s_sScreenshotName.clear();
s_bScreenshot = false;