From 131108ee4848c254c9d333450ce50f0efc42017e Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 11 Jul 2024 13:29:45 +0200 Subject: [PATCH] Remove references to SDL_CreatePixelFormat and SDL_DestroyPixelFormat --- src/dynapi/SDL_dynapi.sym | 2 -- test/testautomation_pixels.c | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/dynapi/SDL_dynapi.sym b/src/dynapi/SDL_dynapi.sym index 9e665952b8..7d23d89023 100644 --- a/src/dynapi/SDL_dynapi.sym +++ b/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; diff --git a/test/testautomation_pixels.c b/test/testautomation_pixels.c index 6819451fc9..5de4c461a1 100644 --- a/test/testautomation_pixels.c +++ b/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 = {