summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/main.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/gui/main.lua b/examples/gui/main.lua
index 079bd95..c799cdb 100644
--- a/examples/gui/main.lua
+++ b/examples/gui/main.lua
@@ -31,6 +31,7 @@ function draw()
if RL_GuiButton( { 112, 16, 96, 32 }, "Button" ) then
print( "Button pressed!" )
+ RL_CloseWindow()
end
if windowOpen and RL_GuiWindowBox( { 300, 16, 200, 320 }, "Window" ) then