From 1be9c1a1054f4f446c7df671346be8f3b6ee5ab3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 13:12:46 -0500 Subject: [PATCH] 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. --- window.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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