SDL/build-scripts
Sam Lantinga 6b137579ea Windows default to fullscreen desktop mode if they don't pick an explicit video mode
Rather than iterating over display modes using an index, there is a new function SDL_GetFullscreenDisplayModes() to get the list of available fullscreen modes on a display.
{
    SDL_DisplayID display = SDL_GetPrimaryDisplay();
    int num_modes = 0;
    SDL_DisplayMode **modes = SDL_GetFullscreenDisplayModes(display, &num_modes);
    if (modes) {
        for (i = 0; i < num_modes; ++i) {
            SDL_DisplayMode *mode = modes[i];
            SDL_Log("Display %" SDL_PRIu32 " mode %d:  %dx%d@%gHz, %d%% scale\n",
                    display, i, mode->pixel_w, mode->pixel_h, mode->refresh_rate, (int)(mode->display_scale * 100.0f));
        }
        SDL_free(modes);
    }
}

SDL_GetDesktopDisplayMode() and SDL_GetCurrentDisplayMode() return pointers to display modes rather than filling in application memory.

Windows now have an explicit fullscreen mode that is set, using SDL_SetWindowFullscreenMode(). The fullscreen mode for a window can be queried with SDL_GetWindowFullscreenMode(), which returns a pointer to the mode, or NULL if the window will be fullscreen desktop. SDL_SetWindowFullscreen() just takes a boolean value, setting the correct fullscreen state based on the selected mode.
2023-02-01 12:05:25 -08:00
..
android-prefab.sh cmake: no more SDL3_* cache variables 2023-01-31 01:59:21 +01:00
androidbuild.sh
androidbuildlibs.sh
clang-format-src.sh
cmake-toolchain-mingw64-i686.cmake
cmake-toolchain-mingw64-x86_64.cmake
codechecker-buildbot.sh
fnsince.pl
gen_audio_channel_conversion.c
gen_audio_resampler_filter.c
git-pre-push-hook.pl
mkinstalldirs
rename_api.py
rename_headers.py
rename_symbols.py
SDL_migration.cocci Windows default to fullscreen desktop mode if they don't pick an explicit video mode 2023-02-01 12:05:25 -08:00
showrev.sh
strip_fPIC.sh
test-versioning.sh cmake: pass VERSION to project() + don't use SDL_VERSION 2023-01-31 01:59:21 +01:00
update-copyright.sh
update-version.sh cmake: pass VERSION to project() + don't use SDL_VERSION 2023-01-31 01:59:21 +01:00
updaterev.sh
wikiheaders.pl wikiheaders: Allow markdown in the wikipreamble string. 2023-01-26 14:45:57 -05:00