ref: 3b4630b51b22432a93ee69ab065be9da458c9f1b
parent: 7aa57bfd754fe4a3c009295b84cf89584596c482
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Aug 24 07:49:40 EDT 2022
Revert "Fixed SDL2 patchlevel checks, they were ignoring minor version."
--- a/src/pt2_main.c
+++ b/src/pt2_main.c
@@ -118,7 +118,7 @@
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
-#if SDL_MAJOR_VERISON == 2 && SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL < 5
+#if SDL_PATCHLEVEL < 5
#pragma message("WARNING: The SDL2 dev lib is older than ver 2.0.5. You'll get fullscreen mode issues.")
#endif
--- a/src/pt2_visuals.c
+++ b/src/pt2_visuals.c
@@ -2343,7 +2343,7 @@
uint32_t rendererFlags = 0;
#ifdef _WIN32
-#if SDL_MAJOR_VERSION == 2 && SDL_MINOR_VESRION >= 0 && SDL_PATCHLEVEL >= 4
+#if SDL_PATCHLEVEL >= 4
SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1"); // this is for Windows only
#endif
#endif