mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 03:51:41 +00:00
add missing SDLCALL to SDL callback functions (it need not be nothing for every platform.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1367 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
8d531519fe
commit
bc5cc7094a
2 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ static int buttonremap[] =
|
|||
/* total accumulated mouse movement since last frame */
|
||||
static int total_dx, total_dy = 0;
|
||||
|
||||
static int IN_FilterMouseEvents (const SDL_Event *event)
|
||||
static int SDLCALL IN_FilterMouseEvents (const SDL_Event *event)
|
||||
{
|
||||
switch (event->type)
|
||||
{
|
||||
|
@ -95,13 +95,13 @@ static int IN_FilterMouseEvents (const SDL_Event *event)
|
|||
}
|
||||
|
||||
#if defined(USE_SDL2)
|
||||
static int IN_SDL2_FilterMouseEvents (void *userdata, SDL_Event *event)
|
||||
static int SDLCALL IN_SDL2_FilterMouseEvents (void *userdata, SDL_Event *event)
|
||||
{
|
||||
return IN_FilterMouseEvents (event);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void IN_BeginIgnoringMouseEvents()
|
||||
static void IN_BeginIgnoringMouseEvents(void)
|
||||
{
|
||||
#if defined(USE_SDL2)
|
||||
SDL_EventFilter currentFilter = NULL;
|
||||
|
@ -116,7 +116,7 @@ static void IN_BeginIgnoringMouseEvents()
|
|||
#endif
|
||||
}
|
||||
|
||||
static void IN_EndIgnoringMouseEvents()
|
||||
static void IN_EndIgnoringMouseEvents(void)
|
||||
{
|
||||
#if defined(USE_SDL2)
|
||||
SDL_EventFilter currentFilter;
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
static int buffersize;
|
||||
|
||||
|
||||
static void paint_audio (void *unused, Uint8 *stream, int len)
|
||||
static void SDLCALL paint_audio (void *unused, Uint8 *stream, int len)
|
||||
{
|
||||
int pos, tobufend;
|
||||
int len1, len2;
|
||||
|
|
Loading…
Reference in a new issue