From e2711b8059b23b46fcb07c6b62302b836a360981 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Mon, 1 May 2023 13:58:35 +0200 Subject: [PATCH] hud elements: fix gamescope graphs size --- src/hud_elements.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index e7172cb..e2c00eb 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -869,7 +869,7 @@ void HudElements::gamescope_frame_timing(){ HUDElements.gamescope_debug_app.end()); right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width * 1.3, "min: %.1fms, max: %.1fms", min[0], max[0]); ImGui::PopFont(); - ImguiNextColumnOrNewRow(); + ImguiNextColumnFirstItem(); char hash[40]; snprintf(hash, sizeof(hash), "##%s", overlay_param_names[OVERLAY_PARAM_ENABLED_frame_timing]); HUDElements.sw_stats->stat_selector = OVERLAY_PLOTS_frame_timing; @@ -899,8 +899,7 @@ void HudElements::gamescope_frame_timing(){ HUDElements.gamescope_debug_latency.end()); right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width * 1.3, "min: %.1fms, max: %.1fms", min[0], max[0]); ImGui::PopFont(); - ImguiNextColumnOrNewRow(); - + ImguiNextColumnFirstItem(); ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); ImGui::PushStyleColor(ImGuiCol_PlotLines, ImVec4(0,0,1,1)); if (ImGui::BeginChild("gamescope_latency_window", ImVec2(ImGui::GetWindowContentRegionWidth(), 50))) {