From f32b7d5775c004b5a413a304ccb7b6f4a1f3be1a Mon Sep 17 00:00:00 2001 From: ev1313 Date: Mon, 29 Jul 2013 21:26:44 +0200 Subject: [PATCH] it works. finally... --- sdl.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl.pas b/sdl.pas index 8be6cd7..8b84004 100644 --- a/sdl.pas +++ b/sdl.pas @@ -432,7 +432,7 @@ TSDL_Thread = record {** * Create a thread. *} -function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer; pfnBeginThread: TpfnSDL_CurrentBeginThread; pfnEndThread: TpfnSDL_CurrentEndThread): PSDL_Thread; overload; external {$IFDEF GPC} name 'SDL_CreateThread' {$ELSE} SDL_LibName {$ENDIF}; +function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer; pfnBeginThread: TpfnSDL_CurrentBeginThread; pfnEndThread: TpfnSDL_CurrentEndThread): PSDL_Thread; cdecl; overload; external {$IFDEF GPC} name 'SDL_CreateThread' {$ELSE} SDL_LibName {$ENDIF}; {** * Create a thread. @@ -5926,7 +5926,7 @@ function SDL_VERSION_ATLEAST(X,Y,Z: Cardinal): Boolean; function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer): PSDL_Thread; begin - Result := SDL_CreateThread(fn,name,data,BeginThread,EndThread); + Result := SDL_CreateThread(fn,name,data,nil,nil); end; {$ENDIF}