mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 15:39:10 +00:00
Folded SDL_WINDOW_FULLSCREEN_EXCLUSIVE and SDL_WINDOW_FULLSCREEN_DESKTOP into a single SDL_WINDOW_FULLSCREEN flag
The fullscreen video mode used by the window can be used to determine whether it's in exclusive fullscreen or fullscreen desktop mode.
This commit is contained in:
parent
14338ab459
commit
ac75fe9324
36 changed files with 184 additions and 250 deletions
|
@ -294,7 +294,7 @@ static int D3D_ActivateRenderer(SDL_Renderer *renderer)
|
|||
SDL_GetWindowSizeInPixels(window, &w, &h);
|
||||
data->pparams.BackBufferWidth = w;
|
||||
data->pparams.BackBufferHeight = h;
|
||||
if ((SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN_EXCLUSIVE) != 0) {
|
||||
if ((SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN) != 0) {
|
||||
fullscreen_mode = SDL_GetWindowFullscreenMode(window);
|
||||
}
|
||||
if (fullscreen_mode) {
|
||||
|
@ -1613,7 +1613,7 @@ D3D_CreateRenderer(SDL_Window *window, Uint32 flags)
|
|||
renderer->driverdata = data;
|
||||
|
||||
SDL_GetWindowSizeInPixels(window, &w, &h);
|
||||
if ((SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN_EXCLUSIVE) != 0) {
|
||||
if ((SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN) != 0) {
|
||||
fullscreen_mode = SDL_GetWindowFullscreenMode(window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue