aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer/button.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/button.go
parent63095aa509e2e3ce113a2681db520d2961284f71 (diff)
downloadgui-7ed10a4fc3c95244d347aa313f0d334aab962f80.zip
update examples to use new Env interface
Diffstat (limited to 'examples/imageviewer/button.go')
-rw-r--r--examples/imageviewer/button.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/imageviewer/button.go b/examples/imageviewer/button.go
index 0693e06..4e00287 100644
--- a/examples/imageviewer/button.go
+++ b/examples/imageviewer/button.go
@@ -58,5 +58,5 @@ func Button(env gui.Env, theme *Theme, text string, action func()) {
}
}
- close(env.Draw())
+ env.Close()
}