test/testoverlay2.c
changeset 5357 ea8fec220775
parent 5274 07559b6cb64f
child 5535 96594ac5fd1a
equal deleted inserted replaced
5356:dc48dd5129a5 5357:ea8fec220775
   535     while (!done) {
   535     while (!done) {
   536         while (SDL_PollEvent(&event)) {
   536         while (SDL_PollEvent(&event)) {
   537             switch (event.type) {
   537             switch (event.type) {
   538             case SDL_WINDOWEVENT:
   538             case SDL_WINDOWEVENT:
   539                 if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
   539                 if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
       
   540                     SDL_RenderSetViewport(renderer, NULL);
   540                     displayrect.w = window_w = event.window.data1;
   541                     displayrect.w = window_w = event.window.data1;
   541                     displayrect.h = window_h = event.window.data2;
   542                     displayrect.h = window_h = event.window.data2;
   542                 }
   543                 }
   543                 break;
   544                 break;
   544             case SDL_MOUSEBUTTONDOWN:
   545             case SDL_MOUSEBUTTONDOWN: