mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Display render on title frame (#1701)
* Display render on title frame * Fix few typo * fix wrong condition
This commit is contained in:
parent
5aae9b5536
commit
5c52521a0a
3 changed files with 7 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ END_EVENT_TABLE()
|
|||
GSFrame::GSFrame(const wxString& title, int w, int h)
|
||||
: wxFrame(nullptr, wxID_ANY, "GSFrame[" + title + "]")
|
||||
{
|
||||
m_render = title;
|
||||
SetIcon(wxGetApp().m_MainFrame->GetIcon());
|
||||
|
||||
SetClientSize(w, h);
|
||||
|
|
@ -106,6 +107,9 @@ void GSFrame::flip(draw_context_t)
|
|||
{
|
||||
std::string title = fmt::format("FPS: %.2f", (double)m_frames / fps_t.GetElapsedTimeInSec());
|
||||
|
||||
if (!m_render.empty())
|
||||
title += " | " + m_render;
|
||||
|
||||
if (!Emu.GetTitle().empty())
|
||||
title += " | " + Emu.GetTitle();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue