Get the drawing area for the current target.
void SDL_RenderGetViewport(SDL_Renderer * renderer,
SDL_Rect * rect);
renderer | the rendering context |
rect | an SDL_Rect structure filled in with the current drawing area |
This function is available since SDL 2.0.0.