When the window is resized, the viewport is automatically reset.

This resolves lots of confusion around resizable windows.  Most people don't expect a viewport to be implicitly set when the renderer is created and then not to be reset to the window size if the window is resized.

Added common test command line parameters --logical WxH and --scale N to test the render logical size and scaling APIs.
This commit is contained in:
Sam Lantinga 2013-05-29 03:22:19 -07:00
parent c55f53aa40
commit 20c5cf1e8b
5 changed files with 40 additions and 44 deletions

View file

@ -123,7 +123,6 @@ struct SDL_Renderer
/* The window associated with the renderer */
SDL_Window *window;
SDL_bool hidden;
SDL_bool resized;
/* The logical resolution for rendering */
int logical_w;