frame_timing: don't use implot for horizontal

pull/1199/head
flightlessmango 5 months ago
parent 1d357e17c8
commit 53281f3f2c

@ -789,6 +789,13 @@ void HudElements::frame_timing(){
NULL, min_time, max_time,
ImVec2(width, height));
#else
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_horizontal]) {
ImGui::PlotLines(hash, get_time_stat, HUDElements.sw_stats,
ARRAY_SIZE(HUDElements.sw_stats->frames_stats), 0,
NULL, min_time, max_time,
ImVec2(width, height));
} else {
if (ImPlot::BeginPlot("My Plot", ImVec2(width, height), ImPlotFlags_CanvasOnly | ImPlotFlags_NoInputs)) {
ImPlotStyle& style = ImPlot::GetStyle();
style.Colors[ImPlotCol_PlotBg] = ImVec4(0.92f, 0.92f, 0.95f, 0.00f);
@ -812,6 +819,7 @@ void HudElements::frame_timing(){
}
ImPlot::EndPlot();
}
}
#endif
}
}

Loading…
Cancel
Save