src/video/windows/SDL_windowsevents.c
changeset 6837 a69e10925a58
parent 6788 036f53f2f5aa
child 6861 c1c9eab3bd20
equal deleted inserted replaced
6836:b0ca1571caf3 6837:a69e10925a58
   467 
   467 
   468             /* Store in min_w and min_h difference between current size and minimal 
   468             /* Store in min_w and min_h difference between current size and minimal 
   469                size so we don't need to call AdjustWindowRectEx twice */
   469                size so we don't need to call AdjustWindowRectEx twice */
   470             min_w -= w;
   470             min_w -= w;
   471             min_h -= h;
   471             min_h -= h;
   472             max_w -= w;
   472             if (max_w && max_h) {
   473             max_h -= h;
   473                 max_w -= w;
       
   474                 max_h -= h;
       
   475             }
   474 
   476 
   475             size.top = 0;
   477             size.top = 0;
   476             size.left = 0;
   478             size.left = 0;
   477             size.bottom = h;
   479             size.bottom = h;
   478             size.right = w;
   480             size.right = w;