From 2f0fb71a0cfaede3b2a10d7c317f851ca8ac8dbc Mon Sep 17 00:00:00 2001 From: BlueNightHawk <46296596+BlueNightHawk@users.noreply.github.com> Date: Mon, 26 Dec 2022 14:03:31 +0530 Subject: [PATCH] Fix window minimizing on startup --- cl_dll/hl_hook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_dll/hl_hook.cpp b/cl_dll/hl_hook.cpp index 5879bb5..971a7e3 100644 --- a/cl_dll/hl_hook.cpp +++ b/cl_dll/hl_hook.cpp @@ -105,8 +105,8 @@ void HL_ImGUI_Init() SDL_HideWindow(firstwindow); // Fix low fps on initial launch... - if ((window_flags & SDL_WINDOW_FULLSCREEN) == 0) - SDL_MinimizeWindow(window); + SDL_MinimizeWindow(window); + SDL_RestoreWindow(window); glDisable(GL_STENCIL_TEST); glStencilMask((GLuint)~0);