From 373bba5fcf44d8800afa4b866d30e71d9e6fa7e8 Mon Sep 17 00:00:00 2001 From: jackun Date: Sat, 7 Mar 2020 14:10:52 +0200 Subject: [PATCH] Keep time outside the table or it gets clipped if using too fancy a format --- src/overlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index abb802c9..8f52eefd 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -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");