aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer/main.go
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/imageviewer/main.go
parent63095aa509e2e3ce113a2681db520d2961284f71 (diff)
downloadgui-7ed10a4fc3c95244d347aa313f0d334aab962f80.zip
update examples to use new Env interface
Diffstat (limited to 'examples/imageviewer/main.go')
-rw-r--r--examples/imageviewer/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/imageviewer/main.go b/examples/imageviewer/main.go
index 67f97fb..10335a1 100644
--- a/examples/imageviewer/main.go
+++ b/examples/imageviewer/main.go
@@ -56,7 +56,7 @@ func run() {
for e := range env.Events() {
switch e.(type) {
case win.WiClose:
- close(env.Draw())
+ env.Close()
}
}
}