added size change event handler to events example

This commit is contained in:
Thomas Friedel 2018-05-17 15:11:03 +02:00
parent 50941d3075
commit eee6571d44

View file

@ -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()