From ee835029b4c84dfb868dc70b4e31003dec0033f2 Mon Sep 17 00:00:00 2001 From: Id405 <8o7wermobile@gmail.com> Date: Fri, 10 May 2019 21:05:39 -0800 Subject: Update win.go --- win/win.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win') diff --git a/win/win.go b/win/win.go index ef6c832..3a06ea9 100644 --- a/win/win.go +++ b/win/win.go @@ -143,12 +143,12 @@ func makeGLFWWin(o *options) (*glfw.Window, error) { glfw.WindowHint(glfw.Maximized, glfw.True) } w, err := glfw.CreateWindow(o.width, o.height, o.title, nil, nil) - if o.maximized { - o.width, o.height = w.GetFramebufferSize() // set o.width and o.height to the window size due to the window being maximized - } if err != nil { return nil, err } + if o.maximized { + o.width, o.height = w.GetFramebufferSize() // set o.width and o.height to the window size due to the window being maximized + } return w, nil } -- cgit v1.2.3