SDL_EventFilter functions now return SDL_bool
This commit is contained in:
@@ -25,7 +25,7 @@ static int g_userdataValue2 = 2;
|
||||
#define MAX_ITERATIONS 100
|
||||
|
||||
/* Event filter that sets some flags and optionally checks userdata */
|
||||
static int SDLCALL events_sampleNullEventFilter(void *userdata, SDL_Event *event)
|
||||
static SDL_bool SDLCALL events_sampleNullEventFilter(void *userdata, SDL_Event *event)
|
||||
{
|
||||
g_eventFilterCalled = 1;
|
||||
|
||||
@@ -36,7 +36,7 @@ static int SDLCALL events_sampleNullEventFilter(void *userdata, SDL_Event *event
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user