From 14436bce086d673b6076024ffc5bb99c32d9d11e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 3 Nov 2025 20:09:54 +0100 Subject: [PATCH] Go home Windows, you're drunk. Only apply UI scaling factor to window size on Linux. --- sbapp/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index a0a021e..e09bd4c 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -201,8 +201,9 @@ else: if not RNS.vendor.platformutils.is_android(): scaling_factor = 1.0 - try: scaling_factor = float(os.environ["KIVY_METRICS_DENSITY"]) - except Exception as e: pass + if not RNS.vendor.platformutils.is_windows() and not RNS.vendor.platformutils.is_darwin() + try: scaling_factor = float(os.environ["KIVY_METRICS_DENSITY"]) + except Exception as e: pass if scaling_factor < 0.75: scaling_factor = 0.75 if scaling_factor > 2: scaling_factor = 2