From 5f6c3c919016f9ca6ab9f8fec9433df9b0ec74c1 Mon Sep 17 00:00:00 2001 From: jackun Date: Sat, 8 Feb 2020 20:32:33 +0200 Subject: [PATCH] Fix ImGui::PopStyleColor() being in wrong place --- src/overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index c1743433..93b986f7 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -1263,13 +1263,13 @@ static void compute_swapchain_display(struct swapchain_data *data) NULL, min_time, max_time, ImVec2(ImGui::GetContentRegionAvailWidth() - instance_data->params.font_size * 2.2, 50)); } + ImGui::PopStyleColor(); } if (instance_data->params.enabled[OVERLAY_PARAM_ENABLED_frame_timing]){ ImGui::SameLine(0,1.0f); ImGui::PushFont(font1); ImGui::Text("%.1f ms", 1000 / data->fps); ImGui::PopFont(); - ImGui::PopStyleColor(); } data->window_size = ImVec2(data->window_size.x, ImGui::GetCursorPosY() + 10.0f); }