From 6f3ed56b998f48d85f76d469d99c9bb89bd5997a Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Sun, 30 Dec 2018 23:19:21 +0000 Subject: [PATCH] Allow the windows to be resizeable --- internal/ui/window.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/ui/window.go b/internal/ui/window.go index baeb514..0d15733 100644 --- a/internal/ui/window.go +++ b/internal/ui/window.go @@ -22,9 +22,10 @@ type Window struct { // To invert things so 0,0 is the *top left*, apply the InvertY` matrix func NewWindow(title string) (*Window, error) { cfg := pixelgl.WindowConfig{ - Title: title, - Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)), - VSync: true, + Title: title, + Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)), + VSync: true, + Resizable: true, } pixelWindow, err := pixelgl.NewWindow(cfg)