Sync wiki -> header

This commit is contained in:
SDL Wiki Bot 2022-05-12 07:39:04 +00:00
parent 6b9884d40a
commit f93e810780
1 changed files with 6 additions and 4 deletions

View File

@ -825,11 +825,13 @@ extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, in
/** /**
* Get device independent resolution for rendering. * Get device independent resolution for rendering.
* *
* When using the main rendering target (eg no target texture is set): this may return 0 for `w` and `h` if the SDL_Renderer has never had its * When using the main rendering target (eg no target texture is set): this
* logical size set by SDL_RenderSetLogicalSize(). Otherwise it returns the logical width and height. * may return 0 for `w` and `h` if the SDL_Renderer has never had its logical
* size set by SDL_RenderSetLogicalSize(). Otherwise it returns the logical
* width and height.
* *
* When using a target texture: * When using a target texture: Never return 0 for `w` and `h` at first. Then
* Never return 0 for `w` and `h` at first. Then it returns the logical width and height that are set. * it returns the logical width and height that are set.
* *
* \param renderer a rendering context * \param renderer a rendering context
* \param w an int to be filled with the width * \param w an int to be filled with the width