Browse Source

Fix references in docs

Maia 6 months ago
parent
commit
417ed7f35f
2 changed files with 6 additions and 6 deletions
  1. 1 1
      include/SDL3/SDL_events.h
  2. 5 5
      include/SDL3/SDL_tray.h

+ 1 - 1
include/SDL3/SDL_events.h

@@ -38,7 +38,7 @@
  * at all).
  *
  * There is other forms of control, too: SDL_PeepEvents() has more
- * functionality at the cost of more complexity, and SDL_WaitEvents() can
+ * functionality at the cost of more complexity, and SDL_WaitEvent() can
  * block the process until something interesting happens, which might be
  * beneficial for certain types of programs on low-power hardware. One may
  * also call SDL_AddEventWatch() to set a callback when new events arrive.

+ 5 - 5
include/SDL3/SDL_tray.h

@@ -204,7 +204,7 @@ extern SDL_DECLSPEC SDL_TrayMenu *SDLCALL SDL_GetTrayMenu(SDL_Tray *tray);
 /**
  * Gets a previously created tray entry submenu.
  *
- * You should have called SDL_CreateTraySubenu() on the entry object. This
+ * You should have called SDL_CreateTraySubmenu() on the entry object. This
  * function allows you to fetch it again later.
  *
  * This function does the same thing as SDL_GetTrayMenu(), except that it
@@ -317,7 +317,7 @@ extern SDL_DECLSPEC const char *SDLCALL SDL_GetTrayEntryLabel(SDL_TrayEntry *ent
  * The entry must have been created with the SDL_TRAYENTRY_CHECKBOX flag.
  *
  * \param entry the entry to be updated.
- * \param checked SDL_TRUE if the entry should be checked; SDL_FALSE
+ * \param checked true if the entry should be checked; false
  *                otherwise.
  *
  * \since This function is available since SDL 3.1.8.
@@ -334,7 +334,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, b
  * The entry must have been created with the SDL_TRAYENTRY_CHECKBOX flag.
  *
  * \param entry the entry to be read.
- * \returns SDL_TRUE if the entry is checked; SDL_FALSE otherwise.
+ * \returns true if the entry is checked; false otherwise.
  *
  * \since This function is available since SDL 3.1.8.
  *
@@ -348,7 +348,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetTrayEntryChecked(SDL_TrayEntry *entry);
  * Sets whether or not an entry is enabled.
  *
  * \param entry the entry to be updated.
- * \param enabled SDL_TRUE if the entry should be enabled; SDL_FALSE
+ * \param enabled true if the entry should be enabled; false
  *                otherwise.
  *
  * \since This function is available since SDL 3.1.8.
@@ -363,7 +363,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryEnabled(SDL_TrayEntry *entry, b
  * Gets whether or not an entry is enabled.
  *
  * \param entry the entry to be read.
- * \returns SDL_TRUE if the entry is enabled; SDL_FALSE otherwise.
+ * \returns true if the entry is enabled; false otherwise.
  *
  * \since This function is available since SDL 3.1.8.
  *