Browse Source

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

Sam Lantinga 5 năm trước cách đây
mục cha
commit
b6eb09ff13
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      include/SDL_hints.h

+ 2 - 1
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