From 2b570120b1e587d7c097c8f1f3fa13ba6970cbf8 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 9 Jul 2024 13:03:25 +0100 Subject: [PATCH] Only protect for bug on Linux --- internal/driver/glfw/window_desktop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/driver/glfw/window_desktop.go b/internal/driver/glfw/window_desktop.go index 2bfc06c238..bcdff5dded 100644 --- a/internal/driver/glfw/window_desktop.go +++ b/internal/driver/glfw/window_desktop.go @@ -315,7 +315,7 @@ func (w *window) detectScale() float32 { } widthMm, heightMm := monitor.GetPhysicalSize() - if widthMm == 60 && heightMm == 60 { // some sort of failure - mostly on Steam Deck + if runtime.GOOS == "linux" && widthMm == 60 && heightMm == 60 { // some sort of failure - mostly on Steam Deck return 1 } widthPx := monitor.GetVideoMode().Width