mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-29 07:59:11 +00:00
Clarify that the SDL_GetStringRule means that SDL will automatically free the memory later.
This commit is contained in:
parent
0d24b6e9f3
commit
d73c7311d5
23 changed files with 66 additions and 69 deletions
|
@ -154,7 +154,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
|
|||
* "direct3d12" or "metal". These never have Unicode characters, and are not
|
||||
* meant to be proper names.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule.
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \param index the index of the rendering driver; the value ranges from 0 to
|
||||
* SDL_GetNumRenderDrivers() - 1.
|
||||
|
@ -324,7 +324,7 @@ extern SDL_DECLSPEC SDL_Window *SDLCALL SDL_GetRenderWindow(SDL_Renderer *render
|
|||
/**
|
||||
* Get the name of a renderer.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule.
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \param renderer the rendering context.
|
||||
* \returns the name of the selected renderer, or NULL if the renderer is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue