Reset the viewport since we're stretching to the entire window.
This commit is contained in:
parent
3c73e33be7
commit
dc7c1fa1df
1 changed files with 1 additions and 0 deletions
|
@ -537,6 +537,7 @@ main(int argc, char **argv)
|
|||
switch (event.type) {
|
||||
case SDL_WINDOWEVENT:
|
||||
if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
|
||||
SDL_RenderSetViewport(renderer, NULL);
|
||||
displayrect.w = window_w = event.window.data1;
|
||||
displayrect.h = window_h = event.window.data2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue