mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
ImGuiManager: Fix debug window interaction with frame limit off
This commit is contained in:
parent
8d3250667f
commit
d096a09ed8
|
@ -786,11 +786,14 @@ void Host::RenderDisplay(bool skip_present)
|
|||
if (!skip_present)
|
||||
{
|
||||
FullscreenUI::Render();
|
||||
ImGuiManager::RenderOverlays();
|
||||
ImGuiManager::RenderTextOverlays();
|
||||
ImGuiManager::RenderOSD();
|
||||
ImGuiManager::RenderDebugWindows();
|
||||
}
|
||||
|
||||
// Debug windows are always rendered, otherwise mouse input breaks on skip.
|
||||
ImGuiManager::RenderOverlayWindows();
|
||||
ImGuiManager::RenderDebugWindows();
|
||||
|
||||
g_host_display->Render(skip_present);
|
||||
|
||||
ImGuiManager::NewFrame();
|
||||
|
|
|
@ -1450,11 +1450,14 @@ void EmuThread::renderDisplay(bool skip_present)
|
|||
if (!skip_present)
|
||||
{
|
||||
FullscreenUI::Render();
|
||||
ImGuiManager::RenderOverlays();
|
||||
ImGuiManager::RenderTextOverlays();
|
||||
ImGuiManager::RenderOSD();
|
||||
ImGuiManager::RenderDebugWindows();
|
||||
}
|
||||
|
||||
// Debug windows are always rendered, otherwise mouse input breaks on skip.
|
||||
ImGuiManager::RenderOverlayWindows();
|
||||
ImGuiManager::RenderDebugWindows();
|
||||
|
||||
g_host_display->Render(skip_present);
|
||||
|
||||
ImGuiManager::NewFrame();
|
||||
|
|
|
@ -128,7 +128,7 @@ static std::tuple<float, float> GetMinMax(gsl::span<const float> values)
|
|||
|
||||
static bool s_save_state_selector_ui_open = false;
|
||||
|
||||
void ImGuiManager::RenderOverlays()
|
||||
void ImGuiManager::RenderTextOverlays()
|
||||
{
|
||||
const System::State state = System::GetState();
|
||||
if (state != System::State::Shutdown)
|
||||
|
@ -140,7 +140,14 @@ void ImGuiManager::RenderOverlays()
|
|||
|
||||
if (g_settings.display_show_inputs && state != System::State::Paused)
|
||||
DrawInputsOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
void ImGuiManager::RenderOverlayWindows()
|
||||
{
|
||||
const System::State state = System::GetState();
|
||||
if (state != System::State::Shutdown)
|
||||
{
|
||||
if (s_save_state_selector_ui_open)
|
||||
SaveStateSelectorUI::Draw();
|
||||
}
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
#include "imgui_manager.h"
|
||||
|
||||
namespace ImGuiManager {
|
||||
void RenderOverlays();
|
||||
void RenderTextOverlays();
|
||||
void RenderOverlayWindows();
|
||||
}
|
||||
|
||||
namespace SaveStateSelectorUI {
|
||||
|
|
Loading…
Reference in a new issue