aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pexeso
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-02-25 18:22:31 -0500
committerSam Anthony <sam@samanthony.xyz>2026-02-25 18:22:31 -0500
commit7ed10a4fc3c95244d347aa313f0d334aab962f80 (patch)
tree9f1e1806c87ac7de22d6abe5696f30aff2f8da2d /examples/pexeso
parent63095aa509e2e3ce113a2681db520d2961284f71 (diff)
downloadgui-7ed10a4fc3c95244d347aa313f0d334aab962f80.zip
update examples to use new Env interface
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()
}
}
}