Skip to content

Commit

Permalink
Only protect for bug on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 9, 2024
1 parent 8b565dc commit 2b57012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b57012

Please sign in to comment.