From 7c7cb9a1dcf5aa09a9d09b1a6067c2611fe21020 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 27 Mar 2024 19:57:05 +0000 Subject: [PATCH] Revert "main: Don't resize the window if we aren't horizontal" Seems to regress on some systems, I need to look into why at some point :/ This reverts commit 7349a1cf29da3c8fd2f96b2941275e721eb3763e. --- src/app/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 74899a2c..33bbb644 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -261,11 +261,6 @@ static bool render(GLFWwindow* window) { if (HUDElements.colors.update) HUDElements.convert_colors(params); - if (screenWidth && screenHeight && params.enabled[OVERLAY_PARAM_ENABLED_horizontal]) - glfwSetWindowSize(window, screenWidth, params.height); - else - glfwSetWindowSize(window, params.width, params.height); - ImVec2 last_window_size = window_size; ImGui_ImplGlfw_NewFrame(); ImGui_ImplOpenGL3_NewFrame(); @@ -275,6 +270,8 @@ static bool render(GLFWwindow* window) { render_imgui(sw_stats, params, window_size, true); get_atom_info(); overlay_end_frame(); + if (screenWidth && screenHeight) + glfwSetWindowSize(window, screenWidth, screenHeight); ImGui::EndFrame(); return last_window_size.x != window_size.x || last_window_size.y != window_size.y; }