mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 13:05:45 -04:00
HostInterface: Enable on-screen FPS/VPS/Speed display via config
This commit is contained in:
@ -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();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user