internal/ui: refactoring: indentation

This commit is contained in:
Hajime Hoshi 2022-08-10 15:47:50 +09:00
parent 2ab255dd1c
commit 085b64006d

View File

@ -1325,7 +1325,9 @@ func (u *userInterfaceImpl) setWindowSizeInDIPImpl(width, height int, fullscreen
u.swapBuffers() u.swapBuffers()
} }
} }
} else { return
}
if mw := u.minimumWindowWidth(); width < mw { if mw := u.minimumWindowWidth(); width < mw {
width = mw width = mw
} }
@ -1362,7 +1364,6 @@ func (u *userInterfaceImpl) setWindowSizeInDIPImpl(width, height int, fullscreen
u.window.SetSize(newW, newH) u.window.SetSize(newW, newH)
}) })
} }
}
} }
// updateVsync must be called on the main thread. // updateVsync must be called on the main thread.