SDL_image: update test/main.c after recent SDL3 changes.

From 29c69ecf3c4430ba6afc0b41dd9df3e562715e0b Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 12 Feb 2024 23:10:20 +0300
Subject: [PATCH] update test/main.c after recent SDL3 changes.

---
 test/main.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/test/main.c b/test/main.c
index 89c55fbe..882b4abc 100644
--- a/test/main.c
+++ b/test/main.c
@@ -592,7 +592,7 @@ DumpPixels(const char *filename, SDL_Surface *surface)
         SDL_Log("    ");
 
         for (i = 0; i < w; i++) {
-            p = pixels + (j * pitch) + (i * surface->format->BytesPerPixel);
+            p = pixels + (j * pitch) + (i * surface->format->bytes_per_pixel);
 
             switch (surface->format->BitsPerPixel) {
                 case 1:
@@ -1056,13 +1056,8 @@ main(int argc, char *argv[])
             }
         }
         if (consumed < 0) {
-
-#if SDL_VERSION_ATLEAST(2, 0, 10)
             static const char *options[] = { "[--iterations #]", "[--execKey #]", "[--seed string]", "[--filter suite_name|test_name]", NULL };
             SDLTest_CommonLogUsage(state, argv[0], options);
-#else
-            SDLTest_CommonUsage(state);
-#endif
             quit(1);
         }