Skip to content

Commit

Permalink
Only use textureScale on macOS
Browse files Browse the repository at this point in the history
This is darwin specific and some linux systems were triggering
it by mistake.

May fix fyne-io#1103
  • Loading branch information
andydotxyz committed Jun 26, 2020
1 parent 6ec6e38 commit 4c70c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window.go
Expand Up @@ -495,7 +495,7 @@ func (w *window) resized(_ *glfw.Window, width, height int) {
}

func (w *window) frameSized(viewport *glfw.Window, width, height int) {
if width == 0 || height == 0 {
if width == 0 || height == 0 || runtime.GOOS != "darwin" {
return
}

Expand Down

0 comments on commit 4c70c2d

Please sign in to comment.