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:
Pietro Gagliardi 2014-02-15 13:12:46 -05:00
parent 532a8f7a16
commit 1be9c1a105
1 changed files with 5 additions and 1 deletions

View File

@ -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