mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 21:14:43 +00:00
SDL_EventFilter functions now return SDL_bool
This commit is contained in:
@@ -9,12 +9,12 @@
|
||||
|
||||
static int clipboard_update_count;
|
||||
|
||||
static int ClipboardEventWatch(void *userdata, SDL_Event *event)
|
||||
static SDL_bool ClipboardEventWatch(void *userdata, SDL_Event *event)
|
||||
{
|
||||
if (event->type == SDL_EVENT_CLIPBOARD_UPDATE) {
|
||||
++clipboard_update_count;
|
||||
}
|
||||
return 0;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
enum
|
||||
|
||||
@@ -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