shithub: ft²

Download patch

ref: d5e077adef7df6a5f08aee7fcad27fa75473ddcf
parent: 00e1d902b0391ce80e40e42071abcf6a95314ff8
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Aug 16 08:00:58 EDT 2023

Update ft2_main.c

--- a/src/ft2_main.c
+++ b/src/ft2_main.c
@@ -93,13 +93,12 @@
 	}
 #endif
 
-#ifdef _WIN32
-
-	// ALT+F4 is used in FT2, but is "close program" in Windows...
+	// ALT+F4 is used in FT2, but is "close program" in some cases...
 #if SDL_MINOR_VERSION >= 24 || (SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL >= 4)
 	SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1");
 #endif
 
+#ifdef _WIN32
 #ifndef _MSC_VER
 	SetProcessDPIAware();
 #endif