mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-15 07:48:14 +00:00
Remove references to SDL_CreatePixelFormat and SDL_DestroyPixelFormat
This commit is contained in:

committed by
Sam Lantinga

parent
9ecc531970
commit
131108ee48
@@ -68,7 +68,6 @@ SDL3_0.0.0 {
|
|||||||
SDL_CreateHapticEffect;
|
SDL_CreateHapticEffect;
|
||||||
SDL_CreateMutex;
|
SDL_CreateMutex;
|
||||||
SDL_CreatePalette;
|
SDL_CreatePalette;
|
||||||
SDL_CreatePixelFormat;
|
|
||||||
SDL_CreatePopupWindow;
|
SDL_CreatePopupWindow;
|
||||||
SDL_CreateProperties;
|
SDL_CreateProperties;
|
||||||
SDL_CreateRWLock;
|
SDL_CreateRWLock;
|
||||||
@@ -102,7 +101,6 @@ SDL3_0.0.0 {
|
|||||||
SDL_DestroyHapticEffect;
|
SDL_DestroyHapticEffect;
|
||||||
SDL_DestroyMutex;
|
SDL_DestroyMutex;
|
||||||
SDL_DestroyPalette;
|
SDL_DestroyPalette;
|
||||||
SDL_DestroyPixelFormat;
|
|
||||||
SDL_DestroyProperties;
|
SDL_DestroyProperties;
|
||||||
SDL_DestroyRWLock;
|
SDL_DestroyRWLock;
|
||||||
SDL_DestroyRenderer;
|
SDL_DestroyRenderer;
|
||||||
|
@@ -145,9 +145,6 @@ static int pixels_getPixelFormatDetails(void *arg)
|
|||||||
result->bytes_per_pixel);
|
result->bytes_per_pixel);
|
||||||
masks = result->Rmask | result->Gmask | result->Bmask | result->Amask;
|
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);
|
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 */
|
/* RGB formats */
|
||||||
@@ -189,7 +186,7 @@ static int pixels_getPixelFormatDetails(void *arg)
|
|||||||
SDLTest_AssertPass("Call to SDL_ClearError()");
|
SDLTest_AssertPass("Call to SDL_ClearError()");
|
||||||
format = g_invalidPixelFormats[i];
|
format = g_invalidPixelFormats[i];
|
||||||
result = SDL_GetPixelFormatDetails(format);
|
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");
|
SDLTest_AssertCheck(result == NULL, "Verify result is NULL");
|
||||||
error = SDL_GetError();
|
error = SDL_GetError();
|
||||||
SDLTest_AssertPass("Call to SDL_GetError()");
|
SDLTest_AssertPass("Call to SDL_GetError()");
|
||||||
@@ -359,7 +356,7 @@ static int pixels_allocFreePalette(void *arg)
|
|||||||
|
|
||||||
/* Pixels test cases */
|
/* Pixels test cases */
|
||||||
static const SDLTest_TestCaseReference pixelsTest1 = {
|
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 = {
|
static const SDLTest_TestCaseReference pixelsTest2 = {
|
||||||
|
Reference in New Issue
Block a user