Commit dc7c1fa1 authored by Sam Lantinga's avatar Sam Lantinga

Reset the viewport since we're stretching to the entire window.

parent 3c73e33b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment