summaryrefslogtreecommitdiff
path: root/src/events/SDL_mouse.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2017-08-14 06:28:21 -0700
committerSam Lantinga <slouken@libsdl.org>2017-08-14 06:28:21 -0700
commit57143a118326f76b178df0627c2f6cc3b35b2441 (patch)
tree3c5baacef3dd9990f90051ae1bd0a60b2d98894e /src/events/SDL_mouse.c
parent06a9ec9872d18d28864638184155100cb068cfe9 (diff)
Fixed bug 3745 - specify SDLCALL as the calling convention for API callbacks
Patches contributed by Ozkan Sezer
Diffstat (limited to 'src/events/SDL_mouse.c')
-rw-r--r--src/events/SDL_mouse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 42d142ab3a..7885c30d33 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -40,7 +40,7 @@ static int SDL_double_click_radius = 1;
static int
SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y);
-static void
+static void SDLCALL
SDL_MouseNormalSpeedScaleChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
SDL_Mouse *mouse = (SDL_Mouse *)userdata;
@@ -52,7 +52,7 @@ SDL_MouseNormalSpeedScaleChanged(void *userdata, const char *name, const char *o
}
}
-static void
+static void SDLCALL
SDL_MouseRelativeSpeedScaleChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
SDL_Mouse *mouse = (SDL_Mouse *)userdata;
@@ -64,7 +64,7 @@ SDL_MouseRelativeSpeedScaleChanged(void *userdata, const char *name, const char
}
}
-static void
+static void SDLCALL
SDL_TouchMouseEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
SDL_Mouse *mouse = (SDL_Mouse *)userdata;