HostInterface: Enable on-screen FPS/VPS/Speed display via config

This commit is contained in:
Connor McLaughlin
2020-03-21 23:05:04 +10:00
parent 9fd95c3e21
commit 7e36195f44
7 changed files with 42 additions and 18 deletions

View File

@ -613,13 +613,13 @@ bool SDLHostInterface::HandleSDLKeyEventForController(const SDL_Event* event)
return false;
}
void SDLHostInterface::DrawImGui()
void SDLHostInterface::DrawImGuiWindows()
{
DrawMainMenuBar();
if (m_system)
DrawDebugWindows();
else
HostInterface::DrawImGuiWindows();
if (!m_system)
DrawPoweredOffWindow();
if (m_settings_window_open)
@ -628,8 +628,6 @@ void SDLHostInterface::DrawImGui()
if (m_about_window_open)
DrawAboutWindow();
DrawOSDMessages();
ImGui::Render();
}
@ -1430,7 +1428,7 @@ void SDLHostInterface::Run()
// rendering
{
DrawImGui();
DrawImGuiWindows();
if (m_system)
m_system->GetGPU()->ResetGraphicsAPIState();

View File

@ -98,7 +98,7 @@ private:
void SetFullscreen(bool enabled);
// We only pass mouse input through if it's grabbed
void DrawImGui();
void DrawImGuiWindows() override;
void DoStartDisc();
void DoChangeDisc();
void DoFrameStep();