aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pexeso
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pexeso')
-rw-r--r--examples/pexeso/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pexeso/main.go b/examples/pexeso/main.go
index 56bd6e6..f990951 100644
--- a/examples/pexeso/main.go
+++ b/examples/pexeso/main.go
@@ -90,7 +90,7 @@ func Tile(env gui.Env, pair chan PairMsg, r image.Rectangle, clr color.Color) {
}
if correct {
- close(env.Draw())
+ env.Close()
return
}
@@ -144,7 +144,7 @@ func run() {
for event := range env.Events() {
switch event.(type) {
case win.WiClose:
- close(env.Draw())
+ env.Close()
}
}
}