Small screenshot fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2479 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-02-28 20:43:11 +00:00
parent fc1c441987
commit 29c22d6d44
1 changed files with 3 additions and 1 deletions

View File

@ -540,10 +540,12 @@ void CFrame::OnScreenshot(wxCommandEvent& WXUNUSED (event))
{
std::string name;
GenerateScreenshotName(name);
bool bPaused = Core::GetState() == Core::CORE_PAUSE;
Core::SetState(Core::CORE_PAUSE);
CPluginManager::GetInstance().GetVideo()->Video_Screenshot(name.c_str());
Core::SetState(Core::CORE_RUN);
if(!bPaused)
Core::SetState(Core::CORE_RUN);
}