aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer/button.go
diff options
context:
space:
mode:
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()
}