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; }
void SetTurboEnabled(bool enabled);
/// ImGui window drawing.
void DrawFPSWindow();
void DrawOSDMessages();
void DrawDebugWindows();
protected:
enum : u32
{
@ -369,9 +374,6 @@ protected:
virtual void DrawImGuiWindows();
void DrawFPSWindow();
void DrawOSDMessages();
void DrawDebugWindows();
void DoFrameStep();
void DoToggleCheats();

View file

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