shithub: ft²

Download patch

ref: 314434bc85df0f0fe55f22db73b40b142e133964
parent: 8ccf7af5f41042323a35fee11f29748fb02e8e1c
author: qwx <qwx@sciops.net>
date: Tue Mar 14 00:56:38 EDT 2023

don't close on altf4

--- a/src/ft2_main.c
+++ b/src/ft2_main.c
@@ -93,12 +93,12 @@
 	}
 #endif
 
-#ifdef _WIN32
-
 	// ALT+F4 is used in FT2, but is "close program" in Windows...
 #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();