diff options
| author | comex <comexk@gmail.com> | 2013-11-02 22:23:29 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2013-11-02 22:23:29 -0400 |
| commit | cd46138d299088631bbcbf37543584946c4b174a (patch) | |
| tree | 8c052bccaf7649bd8d9eb0d2d0dc2ce1d91d7e05 /Source/Core/VideoCommon | |
| parent | 5f72542e0637799092ad1006d16ebad1961020e0 (diff) | |
fix non-HAVE_WX case
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/RenderBase.cpp | 5 |
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(); |
