Removed SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4

Replaced with SDL_HINT_WINDOWS_CLOSE_ON_ALT_F4, defaulting to SDL_TRUE
This commit is contained in:
Sam Lantinga
2024-02-11 18:12:08 -08:00
parent 7cb1ca60ec
commit 20051f805f
3 changed files with 5 additions and 4 deletions

View File

@@ -402,7 +402,7 @@ static void WIN_UpdateFocus(SDL_Window *window, SDL_bool expect_focus)
static SDL_bool ShouldGenerateWindowCloseOnAltF4(void)
{
return !SDL_GetHintBoolean(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, SDL_FALSE);
return SDL_GetHintBoolean(SDL_HINT_WINDOWS_CLOSE_ON_ALT_F4, SDL_TRUE);
}
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)