internal/goglfw: move updateWindowStyles call to win32window_windows.go

updateWindowStyles is originally a Windows-specific function in GLFW,
so this should be in win32window_windows.go.
This commit is contained in:
Hajime Hoshi 2023-05-14 02:54:11 +09:00
parent e3ab7b979f
commit 0ab214b018
2 changed files with 4 additions and 4 deletions

View File

@ -1654,6 +1654,10 @@ func (w *Window) platformSetWindowSizeLimits(minwidth, minheight, maxwidth, maxh
if err := _MoveWindow(w.platform.handle, area.left, area.top, area.right-area.left, area.bottom-area.top, true); err != nil { if err := _MoveWindow(w.platform.handle, area.left, area.top, area.right-area.left, area.bottom-area.top, true); err != nil {
return err return err
} }
if err := w.updateWindowStyles(); err != nil {
return err
}
return nil return nil
} }

View File

@ -424,10 +424,6 @@ func (w *Window) SetSizeLimits(minwidth, minheight, maxwidth, maxheight int) err
return err return err
} }
if err := w.updateWindowStyles(); err != nil {
return err
}
return nil return nil
} }