FPS counter fix

This commit is contained in:
Nekotekina 2017-01-28 03:19:39 +03:00
parent 5ee0cea672
commit 44b2df27ea

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