diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-15 13:12:46 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-15 13:12:46 -0500 |
| commit | 1be9c1a1054f4f446c7df671346be8f3b6ee5ab3 (patch) | |
| tree | 2b713eac5f2d90b2fb13c2cff6f3082c072b43de | |
| parent | 532a8f7a1628114e4422c516eeb748692c82a7e6 (diff) | |
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.
| -rw-r--r-- | window.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
