CommonHostInterface: Tweak frame boundary for loading screen

This commit is contained in:
Connor McLaughlin 2021-01-30 15:50:43 +10:00
parent e1bf362d13
commit 2dbb3325ff
1 changed files with 2 additions and 3 deletions

View File

@ -2417,8 +2417,7 @@ void CommonHostInterface::DisplayLoadingScreen(const char* message, int progress
const bool has_progress = (progress_min < progress_max); const bool has_progress = (progress_min < progress_max);
// eat the last imgui frame, it might've been partially rendered by the caller. // 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<float>(APP_ICON_WIDTH) * scale; const float logo_width = static_cast<float>(APP_ICON_WIDTH) * scale;
const float logo_height = static_cast<float>(APP_ICON_HEIGHT) * scale; const float logo_height = static_cast<float>(APP_ICON_HEIGHT) * scale;
@ -2462,8 +2461,8 @@ void CommonHostInterface::DisplayLoadingScreen(const char* message, int progress
} }
ImGui::End(); ImGui::End();
ImGui::EndFrame();
m_display->Render(); m_display->Render();
ImGui::NewFrame();
} }
void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title) void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title)