Fixed loading textures when the window starts hidden.

The viewport automatically resets to the window size when you programmatically resize the window.
This commit is contained in:
Sam Lantinga 2012-01-22 21:46:06 -05:00
parent f1b459aaf7
commit aaf23fe8af
7 changed files with 76 additions and 30 deletions

View file

@ -100,7 +100,8 @@ struct SDL_Renderer
/* The window associated with the renderer */
SDL_Window *window;
SDL_bool minimized;
SDL_bool hidden;
SDL_bool resized;
/* The drawable area within the window */
SDL_Rect viewport;