comparison 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
comparison
equal deleted inserted replaced
2793:b14f672b2857 2794:f7872b7a8732
23 23
24 /* Window event handling code for SDL */ 24 /* Window event handling code for SDL */
25 25
26 #include "SDL_events.h" 26 #include "SDL_events.h"
27 #include "SDL_events_c.h" 27 #include "SDL_events_c.h"
28 #include "SDL_mouse_c.h"
28 #include "../video/SDL_sysvideo.h" 29 #include "../video/SDL_sysvideo.h"
29 30
30 int 31 int
31 SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1, 32 SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
32 int data2) 33 int data2)
71 return 0; 72 return 0;
72 } 73 }
73 window->w = data1; 74 window->w = data1;
74 window->h = data2; 75 window->h = data2;
75 SDL_OnWindowResized(window); 76 SDL_OnWindowResized(window);
77 SDL_SetMouseFocusSize(windowID, window->w, window->h);
76 break; 78 break;
77 case SDL_WINDOWEVENT_MINIMIZED: 79 case SDL_WINDOWEVENT_MINIMIZED:
78 if (window->flags & SDL_WINDOW_MINIMIZED) { 80 if (window->flags & SDL_WINDOW_MINIMIZED) {
79 return 0; 81 return 0;
80 } 82 }