Skip to content

Commit

Permalink
Update glfw.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pchampio committed Jul 17, 2022
1 parent fb13e99 commit 34eaff6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glfw.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,5 +282,9 @@ func (m *windowManager) getPixelRatioLinux(window *glfw.Window) float64 {
if pixelRatio < 1.0 {
pixelRatio *= m.getPixelRatioOther(window)
}
// If it is still lower than 1, fallback to a pixelRatio of 1.0
if pixelRatio < 1.0 {
pixelRatio = 1.0
}
return pixelRatio
}

0 comments on commit 34eaff6

Please sign in to comment.