fix non-HAVE_WX case

This commit is contained in:
comex 2013-11-02 22:23:29 -04:00
parent 5f72542e06
commit cd46138d29
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,6 @@
#include "DriverDetails.h"
#include "VideoConfig.h"
#include "Statistics.h"
#include "ImageWrite.h"
#include "PixelEngine.h"
#include "Render.h"
#include "BPStructs.h"

View File

@ -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();