From 9124f0f26a0e6b87f6e168ecf31f7f06d08412b2 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Wed, 25 Nov 2020 21:55:17 +0100 Subject: [PATCH] Let graphs take up full content region --- src/hud_elements.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index 5f0c492a..efdf1d37 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -420,12 +420,12 @@ void HudElements::frame_timing(){ ImGui::PlotHistogram(hash, get_time_stat, HUDElements.sw_stats, ARRAY_SIZE(HUDElements.sw_stats->frames_stats), 0, NULL, min_time, max_time, - ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + ImVec2(ImGui::GetContentRegionAvailWidth() * HUDElements.params->table_columns, 50)); } else { ImGui::PlotLines(hash, get_time_stat, HUDElements.sw_stats, ARRAY_SIZE(HUDElements.sw_stats->frames_stats), 0, NULL, min_time, max_time, - ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + ImVec2(ImGui::GetContentRegionAvailWidth() * HUDElements.params->table_columns, 50)); } ImGui::PopStyleColor(); ImGui::SameLine(0,1.0f); @@ -582,12 +582,12 @@ void HudElements::graphs(){ ImGui::PlotLines("", arr.data(), arr.size(), 0, NULL, HUDElements.min, HUDElements.max, - ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + ImVec2(ImGui::GetContentRegionAvailWidth() * HUDElements.params->table_columns, 50)); } else { ImGui::PlotHistogram("", arr.data(), arr.size(), 0, NULL, HUDElements.min, HUDElements.max, - ImVec2(ImGui::GetContentRegionAvailWidth() * 2.5, 50)); + ImVec2(ImGui::GetContentRegionAvailWidth() * HUDElements.params->table_columns, 50)); } ImGui::PopStyleColor(1);