mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
fix non-HAVE_WX case
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user