diff src/events/SDL_windowevents.c @ 2794:f7872b7a8732

Fixed mouse coordinate range on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Nov 2008 21:53:18 +0000
parents db3ba6c0d0df
children 523b10db69f8
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c	Thu Nov 27 05:29:12 2008 +0000
+++ b/src/events/SDL_windowevents.c	Thu Nov 27 21:53:18 2008 +0000
@@ -25,6 +25,7 @@
 
 #include "SDL_events.h"
 #include "SDL_events_c.h"
+#include "SDL_mouse_c.h"
 #include "../video/SDL_sysvideo.h"
 
 int
@@ -73,6 +74,7 @@
         window->w = data1;
         window->h = data2;
         SDL_OnWindowResized(window);
+        SDL_SetMouseFocusSize(windowID, window->w, window->h);
         break;
     case SDL_WINDOWEVENT_MINIMIZED:
         if (window->flags & SDL_WINDOW_MINIMIZED) {