Keep time outside the table or it gets clipped if using too fancy a format

pull/58/head
jackun 4 years ago
parent d62c70172e
commit 373bba5fcf
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -1056,11 +1056,11 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2&
if (!params.no_display){
ImGui::Begin("Main", &open, ImGuiWindowFlags_NoDecoration);
ImGui::BeginTable("hud", params.tableCols);
if (params.enabled[OVERLAY_PARAM_ENABLED_time]){
ImGui::TableNextRow();
ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.00f), "%s", data.time.c_str());
}
ImGui::BeginTable("hud", params.tableCols);
if (params.enabled[OVERLAY_PARAM_ENABLED_gpu_stats]){
ImGui::TableNextRow();
ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(params.gpu_color), "GPU");

Loading…
Cancel
Save