Merge pull request #87 from liamg/set-minimum-window-size

Set a minimum window size
This commit is contained in:
Liam Galvin 2018-11-29 08:47:48 +00:00 committed by GitHub
commit 2f96f43377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -337,6 +337,7 @@ func (gui *GUI) createWindow(width int, height int) (*glfw.Window, error) {
if err != nil {
return nil, fmt.Errorf("Failed to create window: %s", err)
}
window.SetSizeLimits(300, 150, 10000, 10000)
window.MakeContextCurrent()
return window, nil