Skip to content

Commit 5134075

Browse files
Fix: typed aliases
1 parent c7dd0af commit 5134075

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

units/SDL_surface.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
type
3636
PPSDL_SurfaceFlags = ^PSDL_SurfaceFlags;
3737
PSDL_SurfaceFlags = ^TSDL_SurfaceFlags;
38-
TSDL_SurfaceFlags = cuint32;
38+
TSDL_SurfaceFlags = type cuint32;
3939

4040
const
41-
SDL_SURFACE_PREALLOCATED = $00000001; {*< Surface uses preallocated pixel memory }
42-
SDL_SURFACE_LOCK_NEEDED = $00000002; {*< Surface needs to be locked to access pixels }
43-
SDL_SURFACE_LOCKED = $00000004; {*< Surface is currently locked }
44-
SDL_SURFACE_SIMD_ALIGNED = $00000008; {*< Surface uses pixel memory allocated with SDL_aligned_alloc() }
41+
SDL_SURFACE_PREALLOCATED = TSDL_SurfaceFlags($00000001); {*< Surface uses preallocated pixel memory }
42+
SDL_SURFACE_LOCK_NEEDED = TSDL_SurfaceFlags($00000002); {*< Surface needs to be locked to access pixels }
43+
SDL_SURFACE_LOCKED = TSDL_SurfaceFlags($00000004); {*< Surface is currently locked }
44+
SDL_SURFACE_SIMD_ALIGNED = TSDL_SurfaceFlags($00000008); {*< Surface uses pixel memory allocated with SDL_aligned_alloc() }
4545

4646
{*
4747
* Evaluates to true if the surface needs to be locked before access.
@@ -66,10 +66,10 @@ end;
6666
type
6767
PPSDL_ScaleMode = ^PSDL_ScaleMode;
6868
PSDL_ScaleMode = ^TSDL_ScaleMode;
69-
TSDL_ScaleMode = Integer;
69+
TSDL_ScaleMode = type Integer;
7070
const
71-
SDL_SCALEMODE_NEAREST = 0; {*< nearest pixel sampling }
72-
SDL_SCALEMODE_LINEAR = 1; {*< linear filtering }
71+
SDL_SCALEMODE_NEAREST = TSDL_ScaleMode(0); {*< nearest pixel sampling }
72+
SDL_SCALEMODE_LINEAR = TSDL_ScaleMode(1); {*< linear filtering }
7373

7474
{*
7575
* The flip mode.
@@ -79,11 +79,11 @@ const
7979
type
8080
PPSDL_FlipMode = ^PSDL_FlipMode;
8181
PSDL_FlipMode = ^TSDL_FlipMode;
82-
TSDL_FlipMode = Integer;
82+
TSDL_FlipMode = type Integer;
8383
const
84-
SDL_FLIP_NONE = 0; {*< Do not flip }
85-
SDL_FLIP_HORIZONTAL = 1; {*< flip horizontally }
86-
SDL_FLIP_VERTICAL = 2; {*< flip vertically }
84+
SDL_FLIP_NONE = TSDL_FlipMode(0); {*< Do not flip }
85+
SDL_FLIP_HORIZONTAL = TSDL_FlipMode(1); {*< flip horizontally }
86+
SDL_FLIP_VERTICAL = TSDL_FlipMode(2); {*< flip vertically }
8787

8888
{*
8989
* A collection of pixels used in software blitting.

0 commit comments

Comments
 (0)