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:
parent
f1b459aaf7
commit
aaf23fe8af
7 changed files with 76 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue