mirror of https://github.com/libsdl-org/SDL.git
testautomation: Remove Win32 borderless resizable hint
This defaults to 'true' now, so setting it manually is no longer necessary.
This commit is contained in:
parent
759e01bd64
commit
819628c6bf
|
|
@ -1006,10 +1006,6 @@ static int SDLCALL video_getSetWindowSize(void *arg)
|
||||||
int referenceW, referenceH;
|
int referenceW, referenceH;
|
||||||
int currentW, currentH;
|
int currentW, currentH;
|
||||||
int desiredW, desiredH;
|
int desiredW, desiredH;
|
||||||
const bool restoreHint = SDL_GetHintBoolean("SDL_BORDERLESS_RESIZABLE_STYLE", true);
|
|
||||||
|
|
||||||
/* Win32 borderless windows are not resizable by default and need this undocumented hint */
|
|
||||||
SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", "1");
|
|
||||||
|
|
||||||
/* Get display bounds for size range */
|
/* Get display bounds for size range */
|
||||||
result = SDL_GetDisplayUsableBounds(SDL_GetPrimaryDisplay(), &display);
|
result = SDL_GetDisplayUsableBounds(SDL_GetPrimaryDisplay(), &display);
|
||||||
|
|
@ -1188,9 +1184,6 @@ null_tests:
|
||||||
SDLTest_AssertPass("Call to SDL_SetWindowSize(window=NULL)");
|
SDLTest_AssertPass("Call to SDL_SetWindowSize(window=NULL)");
|
||||||
checkInvalidWindowError();
|
checkInvalidWindowError();
|
||||||
|
|
||||||
/* Restore the hint to the previous value */
|
|
||||||
SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", restoreHint ? "1" : "0");
|
|
||||||
|
|
||||||
return TEST_COMPLETED;
|
return TEST_COMPLETED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue