src/events/SDL_windowevents.c
changeset 3685 64ce267332c6
parent 3573 41cd18e05965
child 3697 f7b03b6838cb
     1.1 --- a/src/events/SDL_windowevents.c	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -44,13 +44,11 @@
     1.4  }
     1.5  
     1.6  int
     1.7 -SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
     1.8 +SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
     1.9                      int data2)
    1.10  {
    1.11      int posted;
    1.12 -    SDL_Window *window;
    1.13  
    1.14 -    window = SDL_GetWindowFromID(windowID);
    1.15      if (!window) {
    1.16          return 0;
    1.17      }
    1.18 @@ -152,7 +150,7 @@
    1.19          event.window.event = windowevent;
    1.20          event.window.data1 = data1;
    1.21          event.window.data2 = data2;
    1.22 -        event.window.windowID = windowID;
    1.23 +        event.window.windowID = window->id;
    1.24  
    1.25          /* Fixes queue overflow with resize events that aren't processed */
    1.26          if (windowevent == SDL_WINDOWEVENT_RESIZED) {