# HG changeset patch # User Ryan C. Gordon # Date 1160297916 0 # Node ID be9bd1067c6c5ef13efe891af6c2ec73ea4db638 # Parent 506fc6ca82cb10d450dd14d892912dd1fe2b8f7a Some fixes that were discovered when trying to get OS/2 audio working again... diff -r 506fc6ca82cb -r be9bd1067c6c include/SDL_thread.h --- a/include/SDL_thread.h Sun Oct 08 08:57:28 2006 +0000 +++ b/include/SDL_thread.h Sun Oct 08 08:58:36 2006 +0000 @@ -91,7 +91,7 @@ typedef void (__cdecl * pfnSDL_CurrentEndThread) (unsigned code); #endif -extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(int (*fn) (void *), +extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(int (SDLCALL * f) (void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, diff -r 506fc6ca82cb -r be9bd1067c6c src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Sun Oct 08 08:57:28 2006 +0000 +++ b/src/audio/SDL_audio.c Sun Oct 08 08:58:36 2006 +0000 @@ -614,7 +614,7 @@ for (i = 0; i < SDL_arraysize(open_devices); i++) { if ((open_devices[i]) && (open_devices[i]->iscapture)) { SDL_SetError("Audio device already open"); - return; + return 0; } } } @@ -629,7 +629,7 @@ for (i = 0; i < SDL_arraysize(open_devices); i++) { if ((open_devices[i]) && (!open_devices[i]->iscapture)) { SDL_SetError("Audio device already open"); - return; + return 0; } } } diff -r 506fc6ca82cb -r be9bd1067c6c src/events/SDL_mouse.c --- a/src/events/SDL_mouse.c Sun Oct 08 08:57:28 2006 +0000 +++ b/src/events/SDL_mouse.c Sun Oct 08 08:58:36 2006 +0000 @@ -165,7 +165,7 @@ return mouse->focus; } -static int +static int SDLCALL FlushMouseMotion(void *param, SDL_Event * event) { if (event->type == SDL_MOUSEMOTION diff -r 506fc6ca82cb -r be9bd1067c6c src/video/SDL_rendercopy.h --- a/src/video/SDL_rendercopy.h Sun Oct 08 08:57:28 2006 +0000 +++ b/src/video/SDL_rendercopy.h Sun Oct 08 08:58:36 2006 +0000 @@ -33,10 +33,10 @@ #define SDL_RENDERCOPY_NEAREST 0x0100 typedef struct { - void *src; + Uint8 *src; int src_w, src_h; int src_pitch; - void *dst; + Uint8 *dst; int dst_w, dst_h; int dst_pitch; void *aux_data; @@ -44,7 +44,7 @@ Uint8 r, g, b, a; } SDL_RenderCopyData; -typedef int (*SDL_RenderCopyFunc)(SDL_RenderCopyData *data); +typedef int (SDLCALL * SDL_RenderCopyFunc)(SDL_RenderCopyData *data); extern SDL_RenderCopyFunc SDLCALL SDL_GetRenderCopyFunc(Uint32 src_format, Uint32 dst_format, int modMode, int blendMode, int scaleMode);