Skip to content

Commit 5c51876

Browse files
Free-Pascal-meets-SDL-Websitesuve
authored andcommitted
fix angle and flip var. types in RenderCopyEx/F
1 parent 3e19f95 commit 5c51876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

units/sdlrenderer.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ function SDL_RenderCopyF(renderer: PSDL_Renderer; texture: PSDL_Texture; srcrect
894894
*
895895
* 0 on success, or -1 on error
896896
*}
897-
function SDL_RenderCopyEx(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_Rect; angle: Double; center: PSDL_Point; flip: cint): cint32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RenderCopyEx' {$ENDIF} {$ENDIF};
897+
function SDL_RenderCopyEx(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_Rect; angle: cdouble; center: PSDL_Point; flip: TSDL_Flip): cint32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RenderCopyEx' {$ENDIF} {$ENDIF};
898898

899899
{**
900900
* Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center
@@ -909,7 +909,7 @@ function SDL_RenderCopyEx(renderer: PSDL_Renderer; texture: PSDL_Texture; const
909909
*
910910
* 0 on success, or -1 on error
911911
*}
912-
function SDL_RenderCopyExF(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_FRect; angle: Double; center: PSDL_FPoint; flip: cint): cint32 cdecl;
912+
function SDL_RenderCopyExF(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_FRect; angle: cdouble; center: PSDL_FPoint; flip: TSDL_Flip): cint32 cdecl;
913913
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RenderCopyExF' {$ENDIF} {$ENDIF};
914914

915915
{**

0 commit comments

Comments
 (0)