Merge pull request #2657 from lioncash/screenshot

Render: Add an OSD notification for screenshot saving
This commit is contained in:
Jules Blok 2015-06-25 09:22:26 +02:00
commit 30eae0d258
1 changed files with 4 additions and 1 deletions

View File

@ -1511,7 +1511,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
if (s_bScreenshot)
{
std::lock_guard<std::mutex> lk(s_criticalScreenshot);
SaveScreenshot(s_sScreenshotName, flipped_trc);
if (SaveScreenshot(s_sScreenshotName, flipped_trc))
OSD::AddMessage("Screenshot saved to " + s_sScreenshotName);
// Reset settings
s_sScreenshotName.clear();
s_bScreenshot = false;