Commit b6eb09ff13b58882d218e0207ffc282fa128c983

Sam Lantinga 2020-03-20T15:55:02

Updated documentation so people know to set the SDL_HINT_NO_SIGNAL_HANDLERS hint before SDL_Init()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/SDL_hints.h b/include/SDL_hints.h
index c07c7f9..d8d8075 100644
--- a/include/SDL_hints.h
+++ b/include/SDL_hints.h
@@ -1019,7 +1019,8 @@ extern "C" {
 /**
  *  \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
  *
- * This hint only applies to Unix-like platforms.
+ * This hint only applies to Unix-like platforms, and should set before
+ * any calls to SDL_Init()
  *
  * The variable can be set to the following values:
  *   "0"       - SDL will install a SIGINT and SIGTERM handler, and when it