Fix ImGui::PopStyleColor() being in wrong place

pull/28/head
jackun 4 years ago
parent 4be6d4c748
commit 5f6c3c9190
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -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);
}

Loading…
Cancel
Save