From 83b3a92e9027d9e4bfab8b63df61883e39bd5954 Mon Sep 17 00:00:00 2001 From: Jacob Pfeifer Date: Wed, 26 Nov 2025 11:15:46 -0500 Subject: [PATCH] close the scaling detection window without uninitializing opengl --- system/ui/lib/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/ui/lib/application.py b/system/ui/lib/application.py index e3370a5f74bd38..a37db452623cb1 100644 --- a/system/ui/lib/application.py +++ b/system/ui/lib/application.py @@ -652,7 +652,7 @@ def _calculate_auto_scale(self) -> float: # Create temporary window to query monitor info rl.init_window(1, 1, "") w, h = rl.get_monitor_width(0), rl.get_monitor_height(0) - rl.close_window() + rl.glfw_destroy_window(rl.get_window_handle()) if w == 0 or h == 0 or (w >= self._width and h >= self._height): return 1.0