From 2dbb3325ff7602026854c089d9484a84c6fac32a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 30 Jan 2021 15:50:43 +1000 Subject: [PATCH] CommonHostInterface: Tweak frame boundary for loading screen --- src/frontend-common/common_host_interface.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index c8d392b89..28b60a74d 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -2417,8 +2417,7 @@ void CommonHostInterface::DisplayLoadingScreen(const char* message, int progress const bool has_progress = (progress_min < progress_max); // eat the last imgui frame, it might've been partially rendered by the caller. - // ImGui::EndFrame(); - // ImGui::NewFrame(); + ImGui::NewFrame(); const float logo_width = static_cast(APP_ICON_WIDTH) * scale; const float logo_height = static_cast(APP_ICON_HEIGHT) * scale; @@ -2462,8 +2461,8 @@ void CommonHostInterface::DisplayLoadingScreen(const char* message, int progress } ImGui::End(); + ImGui::EndFrame(); m_display->Render(); - ImGui::NewFrame(); } void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title)