FPS counter fix

This commit is contained in:
Nekotekina committed 2017-01-28 03:21:11 +03:00
1 parent 5ee0cea672
commit 44b2df27ea
1 file changed
+5 -2
+5 -2
View File
@@ -116,8 +116,11 @@ void GSFrame::flip(draw_context_t)
if (!Emu.GetTitleID().empty())
title += " | [" + Emu.GetTitleID() + ']';
// can freeze
SetTitle(wxString(title.c_str(), wxConvUTF8));
wxGetApp().CallAfter([this, title = std::move(title)]
{
SetTitle(wxString(title.c_str(), wxConvUTF8));
});
m_frames = 0;
fps_t.Start();
}