FullscreenUI: Fix debug windows not drawing

This commit is contained in:
Connor McLaughlin 2021-02-01 00:50:47 +10:00
parent 51babf4009
commit 18405a713c
2 changed files with 11 additions and 3 deletions

View file

@ -263,6 +263,11 @@ public:
bool IsTurboEnabled() const { return m_turbo_enabled; } bool IsTurboEnabled() const { return m_turbo_enabled; }
void SetTurboEnabled(bool enabled); void SetTurboEnabled(bool enabled);
/// ImGui window drawing.
void DrawFPSWindow();
void DrawOSDMessages();
void DrawDebugWindows();
protected: protected:
enum : u32 enum : u32
{ {
@ -369,9 +374,6 @@ protected:
virtual void DrawImGuiWindows(); virtual void DrawImGuiWindows();
void DrawFPSWindow();
void DrawOSDMessages();
void DrawDebugWindows();
void DoFrameStep(); void DoFrameStep();
void DoToggleCheats(); void DoToggleCheats();

View file

@ -264,9 +264,15 @@ void Shutdown()
void Render() void Render()
{ {
if (s_debug_menu_enabled) if (s_debug_menu_enabled)
{
DrawDebugMenu(); DrawDebugMenu();
if (System::IsValid())
s_host_interface->DrawDebugWindows();
}
else if (System::IsValid()) else if (System::IsValid())
{
DrawStatsOverlay(); DrawStatsOverlay();
}
ImGuiFullscreen::BeginLayout(); ImGuiFullscreen::BeginLayout();