summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-15 13:12:46 -0500
committerPietro Gagliardi <[email protected]>2014-02-15 13:12:46 -0500
commit1be9c1a1054f4f446c7df671346be8f3b6ee5ab3 (patch)
tree2b713eac5f2d90b2fb13c2cff6f3082c072b43de /window.go
parent532a8f7a1628114e4422c516eeb748692c82a7e6 (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.
Diffstat (limited to 'window.go')
-rw-r--r--window.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/window.go b/window.go
index 770cc81..611763a 100644
--- a/window.go
+++ b/window.go
@@ -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