mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
imgui: fix End call when window is collapsed (#850)
This commit is contained in:
@@ -9,8 +9,10 @@ void ImGui::Layers::VideoInfo::Draw() {
|
||||
|
||||
m_show = IsKeyPressed(ImGuiKey_F10, false) ^ m_show;
|
||||
|
||||
if (m_show && Begin("Video Info")) {
|
||||
Text("Frame time: %.3f ms (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
|
||||
if (m_show) {
|
||||
if (Begin("Video Info")) {
|
||||
Text("Frame time: %.3f ms (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
|
||||
}
|
||||
End();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user