src/events/SDL_windowevents.c
changeset 2794 f7872b7a8732
parent 1970 db3ba6c0d0df
child 2849 523b10db69f8
     1.1 --- a/src/events/SDL_windowevents.c	Thu Nov 27 05:29:12 2008 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Thu Nov 27 21:53:18 2008 +0000
     1.3 @@ -25,6 +25,7 @@
     1.4  
     1.5  #include "SDL_events.h"
     1.6  #include "SDL_events_c.h"
     1.7 +#include "SDL_mouse_c.h"
     1.8  #include "../video/SDL_sysvideo.h"
     1.9  
    1.10  int
    1.11 @@ -73,6 +74,7 @@
    1.12          window->w = data1;
    1.13          window->h = data2;
    1.14          SDL_OnWindowResized(window);
    1.15 +        SDL_SetMouseFocusSize(windowID, window->w, window->h);
    1.16          break;
    1.17      case SDL_WINDOWEVENT_MINIMIZED:
    1.18          if (window->flags & SDL_WINDOW_MINIMIZED) {