Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Some fixes that were discovered when trying to get OS/2 audio working…
Browse files Browse the repository at this point in the history
… again...
  • Loading branch information
icculus committed Oct 8, 2006
1 parent f33cac4 commit afcb91c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/SDL_thread.h
Expand Up @@ -91,7 +91,7 @@ typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread) (void *, unsigned,
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,
Expand Down
4 changes: 2 additions & 2 deletions src/audio/SDL_audio.c
Expand Up @@ -614,7 +614,7 @@ open_audio_device(const char *devname, int iscapture,
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;
}
}
}
Expand All @@ -629,7 +629,7 @@ open_audio_device(const char *devname, int iscapture,
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;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_mouse.c
Expand Up @@ -165,7 +165,7 @@ SDL_GetMouseFocusWindow()
return mouse->focus;
}

static int
static int SDLCALL
FlushMouseMotion(void *param, SDL_Event * event)
{
if (event->type == SDL_MOUSEMOTION
Expand Down
6 changes: 3 additions & 3 deletions src/video/SDL_rendercopy.h
Expand Up @@ -33,18 +33,18 @@
#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;
int flags;
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);

Expand Down

0 comments on commit afcb91c

Please sign in to comment.