Skip to content

Commit 8a67a8a

Browse files
committed
testautomation: fixed video tests on iOS
1 parent 5d9b967 commit 8a67a8a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/testautomation_video.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ static bool VideoSupportsWindowPositioning(void)
1717
if (SDL_strcmp(video_driver, "emscripten") == 0) {
1818
return false;
1919
}
20+
if (SDL_strcmp(video_driver, "uikit") == 0) {
21+
return false;
22+
}
2023
if (SDL_strcmp(video_driver, "wayland") == 0) {
2124
return false;
2225
}
@@ -33,6 +36,9 @@ static bool VideoSupportsWindowResizing(void)
3336
if (SDL_strcmp(video_driver, "emscripten") == 0) {
3437
return false;
3538
}
39+
if (SDL_strcmp(video_driver, "uikit") == 0) {
40+
return false;
41+
}
3642
return true;
3743
}
3844

@@ -398,7 +404,7 @@ static int SDLCALL video_getClosestDisplayModeCurrentResolution(void *arg)
398404
SDL_memcpy(&current, modes[0], sizeof(current));
399405

400406
/* Make call */
401-
result = SDL_GetClosestFullscreenDisplayMode(displays[i], current.w, current.h, current.refresh_rate, false, &closest);
407+
result = SDL_GetClosestFullscreenDisplayMode(displays[i], current.w, current.h, current.refresh_rate, (current.pixel_density > 1.0f), &closest);
402408
SDLTest_AssertPass("Call to SDL_GetClosestFullscreenDisplayMode(target=current)");
403409
SDLTest_AssertCheck(result == true, "Verify return value; expected: true, got: %d", result);
404410

0 commit comments

Comments
 (0)