uidriver/glfw: Misspelling

This commit is contained in:
Hajime Hoshi 2020-08-24 00:10:43 +09:00
parent 07480ed66d
commit 9f8054c2d5

View File

@ -577,7 +577,7 @@ func (u *UserInterface) DeviceScaleFactor() float64 {
// deviceScaleFactor must be called from the main thread. // deviceScaleFactor must be called from the main thread.
func (u *UserInterface) deviceScaleFactor() float64 { func (u *UserInterface) deviceScaleFactor() float64 {
// Before calling SetWindowPosition, the window's positin is not reliable. // Before calling SetWindowPosition, the window's position is not reliable.
if u.iwindow.setPositionCalled { if u.iwindow.setPositionCalled {
// Avoid calling monitor.GetPos if we have the monitor position cached already. // Avoid calling monitor.GetPos if we have the monitor position cached already.
if cm, ok := getCachedMonitor(u.window.GetPos()); ok { if cm, ok := getCachedMonitor(u.window.GetPos()); ok {