Browse Source

Remove references to SDL_CreatePixelFormat and SDL_DestroyPixelFormat

Anonymous Maarten 1 year ago
parent
commit
131108ee48
2 changed files with 2 additions and 7 deletions
  1. 0 2
      src/dynapi/SDL_dynapi.sym
  2. 2 5
      test/testautomation_pixels.c

+ 0 - 2
src/dynapi/SDL_dynapi.sym

@@ -68,7 +68,6 @@ SDL3_0.0.0 {
     SDL_CreateHapticEffect;
     SDL_CreateMutex;
     SDL_CreatePalette;
-    SDL_CreatePixelFormat;
     SDL_CreatePopupWindow;
     SDL_CreateProperties;
     SDL_CreateRWLock;
@@ -102,7 +101,6 @@ SDL3_0.0.0 {
     SDL_DestroyHapticEffect;
     SDL_DestroyMutex;
     SDL_DestroyPalette;
-    SDL_DestroyPixelFormat;
     SDL_DestroyProperties;
     SDL_DestroyRWLock;
     SDL_DestroyRenderer;

+ 2 - 5
test/testautomation_pixels.c

@@ -145,9 +145,6 @@ static int pixels_getPixelFormatDetails(void *arg)
                             result->bytes_per_pixel);
         masks = result->Rmask | result->Gmask | result->Bmask | result->Amask;
         SDLTest_AssertCheck(masks == 0, "Verify value of result.[RGBA]mask combined; expected: 0, got %" SDL_PRIu32, masks);
-
-        /* Deallocate again */
-        SDLTest_AssertPass("Call to SDL_DestroyPixelFormat()");
     }
 
     /* RGB formats */
@@ -189,7 +186,7 @@ static int pixels_getPixelFormatDetails(void *arg)
         SDLTest_AssertPass("Call to SDL_ClearError()");
         format = g_invalidPixelFormats[i];
         result = SDL_GetPixelFormatDetails(format);
-        SDLTest_AssertPass("Call to SDL_CreatePixelFormat(%d)", format);
+        SDLTest_AssertPass("Call to SDL_GetPixelFormatDetails(%d)", format);
         SDLTest_AssertCheck(result == NULL, "Verify result is NULL");
         error = SDL_GetError();
         SDLTest_AssertPass("Call to SDL_GetError()");
@@ -359,7 +356,7 @@ static int pixels_allocFreePalette(void *arg)
 
 /* Pixels test cases */
 static const SDLTest_TestCaseReference pixelsTest1 = {
-    (SDLTest_TestCaseFp)pixels_getPixelFormatDetails, "pixels_allocFreeFormat", "Call to SDL_CreatePixelFormat and SDL_DestroyPixelFormat", TEST_ENABLED
+    (SDLTest_TestCaseFp)pixels_getPixelFormatDetails, "pixels_allocFreeFormat", "Call to SDL_GetPixelFormatDetails", TEST_ENABLED
 };
 
 static const SDLTest_TestCaseReference pixelsTest2 = {