src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
child 1722 5daa04d862f1
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
    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 
    28 
    29 int
    29 int
    30 SDL_PrivateWindowEvent (SDL_WindowID windowID, Uint8 windowevent, int data1,
    30 SDL_PrivateWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
    31                         int data2)
    31                        int data2)
    32 {
    32 {
    33     int posted;
    33     int posted;
    34 
    34 
    35     /* Post the event, if desired */
    35     /* Post the event, if desired */
    36     posted = 0;
    36     posted = 0;
    41         event.window.data1 = data1;
    41         event.window.data1 = data1;
    42         event.window.data2 = data2;
    42         event.window.data2 = data2;
    43         event.window.windowID = windowID;
    43         event.window.windowID = windowID;
    44         if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) {
    44         if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) {
    45             posted = 1;
    45             posted = 1;
    46             SDL_PushEvent (&event);
    46             SDL_PushEvent(&event);
    47         }
    47         }
    48     }
    48     }
    49     return (posted);
    49     return (posted);
    50 }
    50 }
    51 
    51