SDL_image: Fixed -quit option to showimage

From 2d7e8700450670f73e9b1775bdca04bf45a5b601 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 9 May 2022 17:48:39 -0700
Subject: [PATCH] Fixed -quit option to showimage

---
 showimage.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/showimage.c b/showimage.c
index 993dfbb..a9f1bf4 100644
--- a/showimage.c
+++ b/showimage.c
@@ -89,8 +89,7 @@ int main(int argc, char *argv[])
         }
 
         if ( SDL_strcmp(argv[i], "-quit") == 0 ) {
-            done = 1;
-            continue;
+            break;
         }
 
         if ( SDL_strcmp(argv[i], "-save") == 0 && argv[i+1] ) {