소스 검색

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.
Frank Praznik 9 달 전
부모
커밋
f2f04e825d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/testautomation_video.c

+ 1 - 1
test/testautomation_video.c

@@ -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;
     }