comparison src/events/SDL_windowevents.c @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children 5daa04d862f1
comparison
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