Skip to content

Commit

Permalink
Fixed bug #4213 - update documentation to reflect SDL2 behavior of SD…
Browse files Browse the repository at this point in the history
…L_RenderGetLogicalSize
  • Loading branch information
1bsyl committed May 12, 2022
1 parent e4bb3c8 commit 6b9884d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/SDL_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,11 @@ extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, in
/**
* Get device independent resolution for rendering.
*
* This may return 0 for `w` and `h` if the SDL_Renderer has never had its
* logical size set by SDL_RenderSetLogicalSize() and never had a render
* target set.
* 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
* logical size set by SDL_RenderSetLogicalSize(). Otherwise it returns the logical width and height.
*
* When using a target texture:
* Never return 0 for `w` and `h` at first. Then it returns the logical width and height that are set.
*
* \param renderer a rendering context
* \param w an int to be filled with the width
Expand Down

0 comments on commit 6b9884d

Please sign in to comment.