mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +00:00
testautomation: fixed video tests on iOS
This commit is contained in:
@@ -17,6 +17,9 @@ static bool VideoSupportsWindowPositioning(void)
|
|||||||
if (SDL_strcmp(video_driver, "emscripten") == 0) {
|
if (SDL_strcmp(video_driver, "emscripten") == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (SDL_strcmp(video_driver, "uikit") == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (SDL_strcmp(video_driver, "wayland") == 0) {
|
if (SDL_strcmp(video_driver, "wayland") == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -33,6 +36,9 @@ static bool VideoSupportsWindowResizing(void)
|
|||||||
if (SDL_strcmp(video_driver, "emscripten") == 0) {
|
if (SDL_strcmp(video_driver, "emscripten") == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (SDL_strcmp(video_driver, "uikit") == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -398,7 +404,7 @@ static int SDLCALL video_getClosestDisplayModeCurrentResolution(void *arg)
|
|||||||
SDL_memcpy(¤t, modes[0], sizeof(current));
|
SDL_memcpy(¤t, modes[0], sizeof(current));
|
||||||
|
|
||||||
/* Make call */
|
/* Make call */
|
||||||
result = SDL_GetClosestFullscreenDisplayMode(displays[i], current.w, current.h, current.refresh_rate, false, &closest);
|
result = SDL_GetClosestFullscreenDisplayMode(displays[i], current.w, current.h, current.refresh_rate, (current.pixel_density > 1.0f), &closest);
|
||||||
SDLTest_AssertPass("Call to SDL_GetClosestFullscreenDisplayMode(target=current)");
|
SDLTest_AssertPass("Call to SDL_GetClosestFullscreenDisplayMode(target=current)");
|
||||||
SDLTest_AssertCheck(result == true, "Verify return value; expected: true, got: %d", result);
|
SDLTest_AssertCheck(result == true, "Verify return value; expected: true, got: %d", result);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user