diff --git a/examples/events/events.go b/examples/events/events.go index 9ce47d0..ead2d0a 100644 --- a/examples/events/events.go +++ b/examples/events/events.go @@ -43,6 +43,9 @@ func main() { circles = append(circles, circle{x: mx, y: my, color: "#00F"}) } } + wnd.SizeChange = func(w, h int) { + cv.SetSize(w, h) + } lastTime := time.Now()