tests: Fix get/set window size test being skipped

A return check conversion was missed when the SDL_* functions were converted to return boolean values instead of int, which caused this test to be skipped.
This commit is contained in:
Frank Praznik 2025-01-08 11:02:07 -05:00
parent cbdbd66e18
commit f2f04e825d
No known key found for this signature in database

View file

@ -1026,7 +1026,7 @@ static int SDLCALL video_getSetWindowSize(void *arg)
}
SDL_GetWindowSize(window, &currentW, &currentH);
if (SDL_SetWindowSize(window, currentW, currentH)) {
if (!SDL_SetWindowSize(window, currentW, currentH)) {
SDLTest_Log("Skipping window resize tests: %s reports window resizing as unsupported", SDL_GetCurrentVideoDriver());
goto null_tests;
}