Skip to content

Commit

Permalink
Fix: Renames flip type
Browse files Browse the repository at this point in the history
  • Loading branch information
Free-Pascal-meets-SDL-Website authored and suve committed Aug 1, 2024
1 parent 5c51876 commit 2067fa6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions units/sdlrenderer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ type
{**
* Flip constants for SDL_RenderCopyEx
*}
PPSDL_Flip = ^PSDL_Flip;
PSDL_Flip = ^TSDL_Flip;
TSDL_Flip = type cint;
PPSDL_RenderFlip = ^PSDL_RenderFlip;
PSDL_RenderFlip = ^TSDL_RenderFlip;
TSDL_RenderFlip = type cint;

const
SDL_FLIP_NONE = TSDL_Flip($0); {**< Do not flip *}
SDL_FLIP_HORIZONTAL = TSDL_Flip($1); {**< flip horizontally *}
SDL_FLIP_VERTICAL = TSDL_Flip($2); {**< flip vertically *}
SDL_FLIP_NONE = TSDL_RenderFlip($0); {**< Do not flip *}
SDL_FLIP_HORIZONTAL = TSDL_RenderFlip($1); {**< flip horizontally *}
SDL_FLIP_VERTICAL = TSDL_RenderFlip($2); {**< flip vertically *}

type
{**
Expand Down Expand Up @@ -894,7 +894,7 @@ function SDL_RenderCopyF(renderer: PSDL_Renderer; texture: PSDL_Texture; srcrect
*
* 0 on success, or -1 on error
*}
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};
function SDL_RenderCopyEx(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_Rect; angle: cdouble; center: PSDL_Point; flip: TSDL_RenderFlip): cint32 cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RenderCopyEx' {$ENDIF} {$ENDIF};

{**
* Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center
Expand All @@ -909,7 +909,7 @@ function SDL_RenderCopyEx(renderer: PSDL_Renderer; texture: PSDL_Texture; const
*
* 0 on success, or -1 on error
*}
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;
function SDL_RenderCopyExF(renderer: PSDL_Renderer; texture: PSDL_Texture; const srcrect: PSDL_Rect; dstrect: PSDL_FRect; angle: cdouble; center: PSDL_FPoint; flip: TSDL_RenderFlip): cint32 cdecl;
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RenderCopyExF' {$ENDIF} {$ENDIF};

{**
Expand Down

0 comments on commit 2067fa6

Please sign in to comment.