Skip to content

Commit 34eaff6

Browse files
authored
Update glfw.go
1 parent fb13e99 commit 34eaff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

glfw.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,9 @@ func (m *windowManager) getPixelRatioLinux(window *glfw.Window) float64 {
282282
if pixelRatio < 1.0 {
283283
pixelRatio *= m.getPixelRatioOther(window)
284284
}
285+
// If it is still lower than 1, fallback to a pixelRatio of 1.0
286+
if pixelRatio < 1.0 {
287+
pixelRatio = 1.0
288+
}
285289
return pixelRatio
286290
}

0 commit comments

Comments
 (0)