aboutsummaryrefslogtreecommitdiff
path: root/example/preview.adb
diff options
context:
space:
mode:
Diffstat (limited to 'example/preview.adb')
-rw-r--r--example/preview.adb5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/preview.adb b/example/preview.adb
index 5836ebe..0713ad0 100644
--- a/example/preview.adb
+++ b/example/preview.adb
@@ -10,9 +10,8 @@ begin
--
Map := Load_Texture ("./example/resource/pandemos.png" & ASCII.NUL);
--
- Main_Loop: loop
- exit when Window_Should_Close;
- --
+ while not Window_Should_Close
+ loop
Begin_Drawing;
Draw_Texture (Map);
End_Drawing;