summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-11-02 22:23:29 -0400
committercomex <comexk@gmail.com>2013-11-02 22:23:29 -0400
commitcd46138d299088631bbcbf37543584946c4b174a (patch)
tree8c052bccaf7649bd8d9eb0d2d0dc2ce1d91d7e05 /Source/Core/VideoCommon
parent5f72542e0637799092ad1006d16ebad1961020e0 (diff)
fix non-HAVE_WX case
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/RenderBase.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/RenderBase.cpp b/Source/Core/VideoCommon/Src/RenderBase.cpp
index 2171cc6a95..c969885bdd 100644
--- a/Source/Core/VideoCommon/Src/RenderBase.cpp
+++ b/Source/Core/VideoCommon/Src/RenderBase.cpp
@@ -35,6 +35,7 @@
#include "WxUtils.h"
#include <wx/image.h>
#endif
+#include "ImageWrite.h"
#include <cmath>
#include <string>
@@ -308,8 +309,8 @@ void Renderer::SaveScreenshot(u8* ptr, size_t width, size_t height)
OSD::AddMessage("Saving Screenshot... ", 2000);
#else
- SaveTGA(filename.c_str(), W, H, data);
- free(data);
+ SaveTGA(s_sScreenshotName.c_str(), width, height, ptr);
+ free(ptr);
#endif
s_sScreenshotName.clear();