summaryrefslogtreecommitdiffstats
path: root/sdldash.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdldash.c')
-rw-r--r--sdldash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sdldash.c b/sdldash.c
index 1f4ed69..3d5036b 100644
--- a/sdldash.c
+++ b/sdldash.c
@@ -146,6 +146,9 @@ int render_dash(void) {
SDL_Rect DestR;
char txtbuf[64];
+ if (SDL_QuitRequested())
+ return 0;
+
/* Clear with black */
SDL_SetRenderDrawColor(renderer, 0, 0, 0, SDL_ALPHA_OPAQUE);
SDL_RenderClear(renderer);
@@ -219,5 +222,6 @@ done:
if (drawn_tex[i])
SDL_DestroyTexture(drawn_tex[i]);
}
- return 0;
+
+ return 1;
}