shithub: pt2-clone

Download patch

ref: 5d8df0e043f05d080a990d32cfca46e00758953a
parent: 1dc9e6722254bd508e4759853228b638f8e43d52
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Aug 23 14:16:00 EDT 2023

do not quit on alt+f4

--- a/src/pt2_main.c
+++ b/src/pt2_main.c
@@ -168,12 +168,14 @@
 	}
 #endif
 
-#ifdef _WIN32
-
+#if defined(_WIN32) || defined(__plan9__)
 	// ALT+F4 is used in ProTracker, 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
+#endif
+
+#ifdef _WIN32
 
 #ifndef _MSC_VER
 	SetProcessDPIAware();