Explorar o código

docs: Note that you don't need to free SDL_GetDefaultCursor's results.

Reference Issue #6777.

(cherry picked from commit 16f8dfcef944019ce4474061aa06c2a1997e601e)
Ryan C. Gordon %!s(int64=3) %!d(string=hai) anos
pai
achega
4bae75387a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      include/SDL_mouse.h

+ 3 - 0
include/SDL_mouse.h

@@ -389,6 +389,9 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void);
 /**
 /**
  * Get the default cursor.
  * Get the default cursor.
  *
  *
+ * You do not have to call SDL_FreeCursor() on the return value,
+ * but it is safe to do so.
+ *
  * \returns the default cursor on success or NULL on failure.
  * \returns the default cursor on success or NULL on failure.
  *
  *
  * \since This function is available since SDL 2.0.0.
  * \since This function is available since SDL 2.0.0.