From 9639377694c3468b530bc72d1ee0fbb289917a27 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 13 Mar 2022 11:17:38 +0000 Subject: [PATCH] overlay: annotate render_benchmark() as static Function is used solely within the compilation unit. Signed-off-by: Emil Velikov --- src/overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index f3fd3f7..9519af5 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -426,7 +426,7 @@ void render_mpris_metadata(struct overlay_params& params, mutexed_metadata& meta } #endif -void render_benchmark(swapchain_stats& data, struct overlay_params& params, ImVec2& window_size, unsigned height, Clock::time_point now){ +static void render_benchmark(swapchain_stats& data, struct overlay_params& params, const ImVec2& window_size, unsigned height, Clock::time_point now){ // TODO, FIX LOG_DURATION FOR BENCHMARK int benchHeight = (2 + benchmark.percentile_data.size()) * real_font_size.x + 10.0f + 58; ImGui::SetNextWindowSize(ImVec2(window_size.x, benchHeight), ImGuiCond_Always);