浏览代码

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

Reference Issue #6777.
Ryan C. Gordon 2 年之前
父节点
当前提交
16f8dfcef9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/SDL3/SDL_mouse.h

+ 3 - 0
include/SDL3/SDL_mouse.h

@@ -391,6 +391,9 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void);
 /**
  * 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.
  *
  * \since This function is available since SDL 3.0.0.