diff options
Diffstat (limited to 'sdldash.c')
-rw-r--r-- | sdldash.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |