diff --git a/test/testautomation_video.c b/test/testautomation_video.c index 5547f965a9..c457ef17f0 100644 --- a/test/testautomation_video.c +++ b/test/testautomation_video.c @@ -1026,7 +1026,7 @@ static int SDLCALL video_getSetWindowSize(void *arg) } SDL_GetWindowSize(window, ¤tW, ¤tH); - 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; }