Removed another TODO in window.go related to resizing. Also a note I forgot to say a few commits ago: setWindowSize() also keeps the OS-decided window position.
This commit is contained in:
parent
532a8f7a16
commit
1be9c1a105
|
@ -53,7 +53,11 @@ func (w *Window) SetSize(width int, height int) (err error) {
|
|||
defer w.lock.Unlock()
|
||||
|
||||
if w.created {
|
||||
panic("TODO")
|
||||
err := w.sysData.setWindowSize(width, height)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error setting window size: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
w.initWidth = width
|
||||
w.initHeight = height
|
||||
|
|
Loading…
Reference in New Issue