mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
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:
parent
e3ab7b979f
commit
0ab214b018
@ -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 {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := w.updateWindowStyles(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -424,10 +424,6 @@ func (w *Window) SetSizeLimits(minwidth, minheight, maxwidth, maxheight int) err
|
||||
return err
|
||||
}
|
||||
|
||||
if err := w.updateWindowStyles(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user