Skip to content

Commit

Permalink
Fix variable names to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Apr 16, 2019
1 parent 5e850f3 commit ccfb900
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions driver/gl/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,16 @@ func (w *window) fitContent() {
return
}

winWidth, winHeight := w.minSizeOnScreen()
minWidth, minHeight := w.minSizeOnScreen()
if w.fixedSize {
w.viewport.SetSizeLimits(winWidth, winHeight, winWidth, winHeight)
w.viewport.SetSizeLimits(minWidth, minHeight, minWidth, minHeight)
} else {
w.viewport.SetSizeLimits(winWidth, winHeight, glfw.DontCare, glfw.DontCare)
w.viewport.SetSizeLimits(minWidth, minHeight, glfw.DontCare, glfw.DontCare)
}

width, height := w.viewport.GetSize()
if width < winWidth || height < winHeight {
w.viewport.SetSize(fyne.Max(width, winWidth), fyne.Max(height, winHeight))
if width < minWidth || height < minHeight {
w.viewport.SetSize(fyne.Max(width, minWidth), fyne.Max(height, minHeight))
}
}

Expand Down

0 comments on commit ccfb900

Please sign in to comment.