internal/uidriver/glfw/ui.go
func (u *UserInterface) setScreenSize(width, height int, scale float64, fullscreen bool, vsync bool) bool {
	if u.width == width && u.height == height && u.scale == scale && u.isFullscreen() == fullscreen && u.vsync == vsync {
		return false
	}
	u.forceSetScreenSize(width, height, scale, fullscreen, vsync)
	return true
}
func (u *UserInterface) setScreenSize(width, height int, scale float64, fullscreen bool, vsync bool) bool {
	if u.width == width && u.height == height && u.scale == scale && u.isFullscreen() == fullscreen && u.vsync == vsync {
		return false
	}
	u.forceSetScreenSize(width, height, scale, fullscreen, vsync)
	return true
}
func ( u * UserInterface ) setScreenSize ( width , height int , scale float64 , fullscreen bool , vsync bool ) bool { if u . width == width && u . height == height && u . scale == scale && u . isFullscreen ( ) == fullscreen && u . vsync == vsync { return false } u . forceSetScreenSize ( width , height , scale , fullscreen , vsync ) return true }
// setScreenSize must be called from the main thread.
setScreenSize must be called from the main thread .