overlay: position_layer() takes an immutable window_size

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
pull/707/head
Emil Velikov 2 years ago committed by jackun
parent 1e840f286b
commit 5a53ad010f
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -275,7 +275,7 @@ float get_time_stat(void *_data, int _idx)
return data->frames_stats[idx].stats[data->stat_selector] / data->time_dividor;
}
void position_layer(struct swapchain_stats& data, struct overlay_params& params, ImVec2 window_size)
void position_layer(struct swapchain_stats& data, struct overlay_params& params, const ImVec2& window_size)
{
unsigned width = ImGui::GetIO().DisplaySize.x;
unsigned height = ImGui::GetIO().DisplaySize.y;

@ -151,7 +151,7 @@ extern double min_frametime, max_frametime;
extern bool steam_focused;
void init_spdlog();
void position_layer(struct swapchain_stats& data, struct overlay_params& params, ImVec2 window_size);
void position_layer(struct swapchain_stats& data, struct overlay_params& params, const ImVec2& window_size);
void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2& window_size, bool is_vulkan);
void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID);
void update_hud_info_with_frametime(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID, uint64_t frametime_ns);

Loading…
Cancel
Save