Skip to content

Commit 076ac8e

Browse files
committed
Convert all cbool occurrences to Boolean
On x86_64 Linux, FPC's ctypes.cbool type is 4 bytes in size, whereas C99 _Bool and C23 bool types are 1 byte long. This causes mismatched struct sizes and field alignments between C and Pascal code. According to FPC developers, ctypes.cbool type is intended to replicate the behaviour of using 'int' for storing boolean values in C code, and not to be an equivalent of C99 _Bool / C23 bool. In the latter case, plain Pascal Boolean is recommended. See: https://gitlab.com/freepascal.org/fpc/source/-/issues/40746
1 parent e8d3f3b commit 076ac8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+603
-608
lines changed

units/SDL3.pas

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,38 +175,38 @@ procedure SDL_RectToFRect(const rect: PSDL_Rect; frect: PSDL_FRect);
175175
frect^.h:=cfloat(rect^.h);
176176
end;
177177

178-
function SDL_PointInRect(const p: PSDL_Point; const r: PSDL_Rect): cbool;
178+
function SDL_PointInRect(const p: PSDL_Point; const r: PSDL_Rect): Boolean;
179179
begin
180180
Result :=
181181
(p <> nil) and (r <> nil) and (p^.x >= r^.x) and (p^.x < (r^.x + r^.w)) and
182182
(p^.y >= r^.y) and (p^.y < (r^.y + r^.h));
183183
end;
184184

185-
function SDL_RectEmpty(const r: PSDL_Rect): cbool;
185+
function SDL_RectEmpty(const r: PSDL_Rect): Boolean;
186186
begin
187187
Result := (r = nil) or (r^.w <= 0) or (r^.h <= 0);
188188
end;
189189

190-
function SDL_RectsEqual(const a: PSDL_Rect; const b: PSDL_Rect): cbool;
190+
function SDL_RectsEqual(const a: PSDL_Rect; const b: PSDL_Rect): Boolean;
191191
begin
192192
Result := (a <> nil) and (b <> nil) and (a^.x = b^.x) and (a^.y = b^.y) and
193193
(a^.w = b^.w) and (a^.h = b^.h);
194194
end;
195195

196-
function SDL_PointInRectFloat(const p: PSDL_FPoint; const r: PSDL_FRect): cbool;
196+
function SDL_PointInRectFloat(const p: PSDL_FPoint; const r: PSDL_FRect): Boolean;
197197
begin
198198
Result :=
199199
(p <> nil) and (r <> nil) and (p^.x >= r^.x) and (p^.x <= (r^.x + r^.w)) and
200200
(p^.y >= r^.y) and (p^.y <= (r^.y + r^.h));
201201
end;
202202

203-
function SDL_RectEmptyFloat(const r: PSDL_FRect): cbool;
203+
function SDL_RectEmptyFloat(const r: PSDL_FRect): Boolean;
204204
begin
205205
Result := (r = nil) or (r^.w < cfloat(0.0)) or (r^.h < cfloat(0.0));
206206
end;
207207

208208
function SDL_RectsEqualEpsilon(const a: PSDL_Frect; const b: PSDL_FRect;
209-
const epsilon: cfloat): cbool;
209+
const epsilon: cfloat): Boolean;
210210
begin
211211
Result :=
212212
(a <> nil) and (b <> nil) and ((a = b) or
@@ -216,7 +216,7 @@ function SDL_RectsEqualEpsilon(const a: PSDL_Frect; const b: PSDL_FRect;
216216
(SDL_fabsf(a^.h - b^.h) <= epsilon)));
217217
end;
218218

219-
function SDL_RectsEqualFloat(const a: PSDL_FRect; b: PSDL_FRect): cbool;
219+
function SDL_RectsEqualFloat(const a: PSDL_FRect; b: PSDL_FRect): Boolean;
220220
begin
221221
Result := SDL_RectsEqualEpsilon(a, b, SDL_FLT_EPSILON);
222222
end;
@@ -337,7 +337,7 @@ function SDL_AtomicIncRef(a: PSDL_AtomicInt): cint;
337337
SDL_AtomicIncRef:=SDL_AddAtomicInt(a,1);
338338
end;
339339

340-
function SDL_AtomicDecRef(a: PSDL_AtomicInt): cbool;
340+
function SDL_AtomicDecRef(a: PSDL_AtomicInt): Boolean;
341341
begin
342342
SDL_AtomicDecRef:=(SDL_AddAtomicInt(a,-1)=1);
343343
end;

units/SDL3_image.pas

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function IMG_Version: cint; cdecl;
170170
* \sa IMG_Load_IO
171171
* \sa SDL_DestroySurface
172172
}
173-
function IMG_LoadTyped_IO(src: PSDL_IOStream; closeio: cbool; type_: PAnsiChar): PSDL_Surface; cdecl;
173+
function IMG_LoadTyped_IO(src: PSDL_IOStream; closeio: Boolean; type_: PAnsiChar): PSDL_Surface; cdecl;
174174
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_LoadTyped_IO' {$ENDIF} {$ENDIF};
175175

176176
{*
@@ -271,7 +271,7 @@ function IMG_Load(file_: PAnsiChar): PSDL_Surface; cdecl;
271271
* \sa IMG_LoadTyped_IO
272272
* \sa SDL_DestroySurface
273273
}
274-
function IMG_Load_IO(src: PSDL_IOStream; closeio: cbool): PSDL_Surface; cdecl;
274+
function IMG_Load_IO(src: PSDL_IOStream; closeio: Boolean): PSDL_Surface; cdecl;
275275
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_Load_IO' {$ENDIF} {$ENDIF};
276276

277277
{*
@@ -355,7 +355,7 @@ function IMG_LoadTexture(renderer: PSDL_Renderer; file_: PAnsiChar): PSDL_Textur
355355
* \sa IMG_LoadTextureTyped_IO
356356
* \sa SDL_DestroyTexture
357357
}
358-
function IMG_LoadTexture_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; closeio: cbool): PSDL_Texture; cdecl;
358+
function IMG_LoadTexture_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; closeio: Boolean): PSDL_Texture; cdecl;
359359
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_LoadTexture_IO' {$ENDIF} {$ENDIF};
360360

361361
{*
@@ -411,7 +411,7 @@ function IMG_LoadTexture_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; closeio
411411
* \sa IMG_LoadTexture_IO
412412
* \sa SDL_DestroyTexture
413413
}
414-
function IMG_LoadTextureTyped_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; closeio: cbool; type_: PAnsiChar): PSDL_Texture; cdecl;
414+
function IMG_LoadTextureTyped_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; closeio: Boolean; type_: PAnsiChar): PSDL_Texture; cdecl;
415415
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_LoadTextureTyped_IO' {$ENDIF} {$ENDIF};
416416

417417
{*
@@ -456,7 +456,7 @@ function IMG_LoadTextureTyped_IO(renderer: PSDL_Renderer; src: PSDL_IOStream; cl
456456
* \sa IMG_isXV
457457
* \sa IMG_isWEBP
458458
}
459-
function IMG_isAVIF(src: PSDL_IOStream): cbool; cdecl;
459+
function IMG_isAVIF(src: PSDL_IOStream): Boolean; cdecl;
460460
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isAVIF' {$ENDIF} {$ENDIF};
461461

462462
{*
@@ -500,7 +500,7 @@ function IMG_isAVIF(src: PSDL_IOStream): cbool; cdecl;
500500
* \sa IMG_isXV
501501
* \sa IMG_isWEBP
502502
}
503-
function IMG_isICO(src: PSDL_IOStream): cbool; cdecl;
503+
function IMG_isICO(src: PSDL_IOStream): Boolean; cdecl;
504504
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isICO' {$ENDIF} {$ENDIF};
505505

506506
{*
@@ -544,7 +544,7 @@ function IMG_isICO(src: PSDL_IOStream): cbool; cdecl;
544544
* \sa IMG_isXV
545545
* \sa IMG_isWEBP
546546
}
547-
function IMG_isCUR(src: PSDL_IOStream): cbool; cdecl;
547+
function IMG_isCUR(src: PSDL_IOStream): Boolean; cdecl;
548548
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isCUR' {$ENDIF} {$ENDIF};
549549

550550
{*
@@ -588,7 +588,7 @@ function IMG_isCUR(src: PSDL_IOStream): cbool; cdecl;
588588
* \sa IMG_isXV
589589
* \sa IMG_isWEBP
590590
}
591-
function IMG_isBMP(src: PSDL_IOStream): cbool; cdecl;
591+
function IMG_isBMP(src: PSDL_IOStream): Boolean; cdecl;
592592
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isBMP' {$ENDIF} {$ENDIF};
593593

594594
{*
@@ -632,7 +632,7 @@ function IMG_isBMP(src: PSDL_IOStream): cbool; cdecl;
632632
* \sa IMG_isXV
633633
* \sa IMG_isWEBP
634634
}
635-
function IMG_isGIF(src: PSDL_IOStream): cbool; cdecl;
635+
function IMG_isGIF(src: PSDL_IOStream): Boolean; cdecl;
636636
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isGIF' {$ENDIF} {$ENDIF};
637637

638638
{*
@@ -676,7 +676,7 @@ function IMG_isGIF(src: PSDL_IOStream): cbool; cdecl;
676676
* \sa IMG_isXV
677677
* \sa IMG_isWEBP
678678
}
679-
function IMG_isJPG(src: PSDL_IOStream): cbool; cdecl;
679+
function IMG_isJPG(src: PSDL_IOStream): Boolean; cdecl;
680680
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isJPG' {$ENDIF} {$ENDIF};
681681

682682
{*
@@ -720,7 +720,7 @@ function IMG_isJPG(src: PSDL_IOStream): cbool; cdecl;
720720
* \sa IMG_isXV
721721
* \sa IMG_isWEBP
722722
}
723-
function IMG_isJXL(src: PSDL_IOStream): cbool; cdecl;
723+
function IMG_isJXL(src: PSDL_IOStream): Boolean; cdecl;
724724
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isJXL' {$ENDIF} {$ENDIF};
725725

726726
{*
@@ -764,7 +764,7 @@ function IMG_isJXL(src: PSDL_IOStream): cbool; cdecl;
764764
* \sa IMG_isXV
765765
* \sa IMG_isWEBP
766766
}
767-
function IMG_isLBM(src: PSDL_IOStream): cbool; cdecl;
767+
function IMG_isLBM(src: PSDL_IOStream): Boolean; cdecl;
768768
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isLBM' {$ENDIF} {$ENDIF};
769769

770770
{*
@@ -808,7 +808,7 @@ function IMG_isLBM(src: PSDL_IOStream): cbool; cdecl;
808808
* \sa IMG_isXV
809809
* \sa IMG_isWEBP
810810
}
811-
function IMG_isPCX(src: PSDL_IOStream): cbool; cdecl;
811+
function IMG_isPCX(src: PSDL_IOStream): Boolean; cdecl;
812812
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isPCX' {$ENDIF} {$ENDIF};
813813

814814
{*
@@ -852,7 +852,7 @@ function IMG_isPCX(src: PSDL_IOStream): cbool; cdecl;
852852
* \sa IMG_isXV
853853
* \sa IMG_isWEBP
854854
}
855-
function IMG_isPNG(src: PSDL_IOStream): cbool; cdecl;
855+
function IMG_isPNG(src: PSDL_IOStream): Boolean; cdecl;
856856
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isPNG' {$ENDIF} {$ENDIF};
857857

858858
{*
@@ -896,7 +896,7 @@ function IMG_isPNG(src: PSDL_IOStream): cbool; cdecl;
896896
* \sa IMG_isXV
897897
* \sa IMG_isWEBP
898898
}
899-
function IMG_isPNM(src: PSDL_IOStream): cbool; cdecl;
899+
function IMG_isPNM(src: PSDL_IOStream): Boolean; cdecl;
900900
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isPNM' {$ENDIF} {$ENDIF};
901901

902902
{*
@@ -940,7 +940,7 @@ function IMG_isPNM(src: PSDL_IOStream): cbool; cdecl;
940940
* \sa IMG_isXV
941941
* \sa IMG_isWEBP
942942
}
943-
function IMG_isSVG(src: PSDL_IOStream): cbool; cdecl;
943+
function IMG_isSVG(src: PSDL_IOStream): Boolean; cdecl;
944944
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isSVG' {$ENDIF} {$ENDIF};
945945

946946
{*
@@ -984,7 +984,7 @@ function IMG_isSVG(src: PSDL_IOStream): cbool; cdecl;
984984
* \sa IMG_isXV
985985
* \sa IMG_isWEBP
986986
}
987-
function IMG_isQOI(src: PSDL_IOStream): cbool; cdecl;
987+
function IMG_isQOI(src: PSDL_IOStream): Boolean; cdecl;
988988
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isQOI' {$ENDIF} {$ENDIF};
989989

990990
{*
@@ -1028,7 +1028,7 @@ function IMG_isQOI(src: PSDL_IOStream): cbool; cdecl;
10281028
* \sa IMG_isXV
10291029
* \sa IMG_isWEBP
10301030
}
1031-
function IMG_isTIF(src: PSDL_IOStream): cbool; cdecl;
1031+
function IMG_isTIF(src: PSDL_IOStream): Boolean; cdecl;
10321032
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isTIF' {$ENDIF} {$ENDIF};
10331033

10341034
{*
@@ -1072,7 +1072,7 @@ function IMG_isTIF(src: PSDL_IOStream): cbool; cdecl;
10721072
* \sa IMG_isXV
10731073
* \sa IMG_isWEBP
10741074
}
1075-
function IMG_isXCF(src: PSDL_IOStream): cbool; cdecl;
1075+
function IMG_isXCF(src: PSDL_IOStream): Boolean; cdecl;
10761076
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isXCF' {$ENDIF} {$ENDIF};
10771077

10781078
{*
@@ -1116,7 +1116,7 @@ function IMG_isXCF(src: PSDL_IOStream): cbool; cdecl;
11161116
* \sa IMG_isXV
11171117
* \sa IMG_isWEBP
11181118
}
1119-
function IMG_isXPM(src: PSDL_IOStream): cbool; cdecl;
1119+
function IMG_isXPM(src: PSDL_IOStream): Boolean; cdecl;
11201120
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isXPM' {$ENDIF} {$ENDIF};
11211121

11221122
{*
@@ -1160,7 +1160,7 @@ function IMG_isXPM(src: PSDL_IOStream): cbool; cdecl;
11601160
* \sa IMG_isXPM
11611161
* \sa IMG_isWEBP
11621162
}
1163-
function IMG_isXV(src: PSDL_IOStream): cbool; cdecl;
1163+
function IMG_isXV(src: PSDL_IOStream): Boolean; cdecl;
11641164
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isXV' {$ENDIF} {$ENDIF};
11651165

11661166
{*
@@ -1204,7 +1204,7 @@ function IMG_isXV(src: PSDL_IOStream): cbool; cdecl;
12041204
* \sa IMG_isXPM
12051205
* \sa IMG_isXV
12061206
}
1207-
function IMG_isWEBP(src: PSDL_IOStream): cbool; cdecl;
1207+
function IMG_isWEBP(src: PSDL_IOStream): Boolean; cdecl;
12081208
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_isWEBP' {$ENDIF} {$ENDIF};
12091209

12101210
{*
@@ -1950,7 +1950,7 @@ function IMG_ReadXPMFromArrayToRGB888(xpm: PPAnsiChar): PSDL_Surface; cdecl;
19501950
*
19511951
* \sa IMG_SaveAVIF_IO
19521952
}
1953-
function IMG_SaveAVIF(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): cbool; cdecl;
1953+
function IMG_SaveAVIF(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): Boolean; cdecl;
19541954
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SaveAVIF' {$ENDIF} {$ENDIF};
19551955

19561956
{*
@@ -1974,7 +1974,7 @@ function IMG_SaveAVIF(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): c
19741974
*
19751975
* \sa IMG_SaveAVIF
19761976
}
1977-
function IMG_SaveAVIF_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: cbool; quality: cint): cbool; cdecl;
1977+
function IMG_SaveAVIF_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: Boolean; quality: cint): Boolean; cdecl;
19781978
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SaveAVIF_IO' {$ENDIF} {$ENDIF};
19791979

19801980
{*
@@ -1991,7 +1991,7 @@ function IMG_SaveAVIF_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: cbo
19911991
*
19921992
* \sa IMG_SavePNG_IO
19931993
}
1994-
function IMG_SavePNG(surface: PSDL_Surface; file_: PAnsiChar): cbool; cdecl;
1994+
function IMG_SavePNG(surface: PSDL_Surface; file_: PAnsiChar): Boolean; cdecl;
19951995
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SavePNG' {$ENDIF} {$ENDIF};
19961996

19971997
{*
@@ -2013,7 +2013,7 @@ function IMG_SavePNG(surface: PSDL_Surface; file_: PAnsiChar): cbool; cdecl;
20132013
*
20142014
* \sa IMG_SavePNG
20152015
}
2016-
function IMG_SavePNG_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: cbool): cbool; cdecl;
2016+
function IMG_SavePNG_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: Boolean): Boolean; cdecl;
20172017
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SavePNG_IO' {$ENDIF} {$ENDIF};
20182018

20192019
{*
@@ -2032,7 +2032,7 @@ function IMG_SavePNG_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: cboo
20322032
*
20332033
* \sa IMG_SaveJPG_IO
20342034
}
2035-
function IMG_SaveJPG(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): cbool; cdecl;
2035+
function IMG_SaveJPG(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): Boolean; cdecl;
20362036
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SaveJPG' {$ENDIF} {$ENDIF};
20372037

20382038
{*
@@ -2056,7 +2056,7 @@ function IMG_SaveJPG(surface: PSDL_Surface; file_: PAnsiChar; quality: cint): cb
20562056
*
20572057
* \sa IMG_SaveJPG
20582058
}
2059-
function IMG_SaveJPG_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: cbool; quality: cint): cbool; cdecl;
2059+
function IMG_SaveJPG_IO(surface: PSDL_Surface; dst: PSDL_IOStream; closeio: Boolean; quality: cint): Boolean; cdecl;
20602060
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_SaveJPG_IO' {$ENDIF} {$ENDIF};
20612061

20622062
{*
@@ -2110,7 +2110,7 @@ function IMG_LoadAnimation(file_: PAnsiChar): PIMG_Animation; cdecl;
21102110
*
21112111
* \sa IMG_FreeAnimation
21122112
}
2113-
function IMG_LoadAnimation_IO(src: PSDL_IOStream; closeio: cbool): PIMG_Animation; cdecl;
2113+
function IMG_LoadAnimation_IO(src: PSDL_IOStream; closeio: Boolean): PIMG_Animation; cdecl;
21142114
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_LoadAnimation_IO' {$ENDIF} {$ENDIF};
21152115

21162116
{*
@@ -2141,7 +2141,7 @@ function IMG_LoadAnimation_IO(src: PSDL_IOStream; closeio: cbool): PIMG_Animatio
21412141
* \sa IMG_LoadAnimation_IO
21422142
* \sa IMG_FreeAnimation
21432143
}
2144-
function IMG_LoadAnimationTyped_IO(src: PSDL_IOStream; closeio: cbool; type_: PAnsiChar): PIMG_Animation; cdecl;
2144+
function IMG_LoadAnimationTyped_IO(src: PSDL_IOStream; closeio: Boolean; type_: PAnsiChar): PIMG_Animation; cdecl;
21452145
external IMG_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_IMG_LoadAnimationTyped_IO' {$ENDIF} {$ENDIF};
21462146

21472147
{*

units/SDL3_textengine.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ TTTF_TextData = record
138138
font: PTTF_Font; {*< The font used by this text, read-only. }
139139
color: TSDL_FColor; {*< The color of the text, read-only. }
140140

141-
needs_layout_update: cbool; {*< True if the layout needs to be updated }
141+
needs_layout_update: Boolean;{*< True if the layout needs to be updated }
142142
layout: PTTF_TextLayout; {*< Cached layout information, read-only. }
143143
x: cint; {*< The x offset of the upper left corner of this text, in pixels, read-only. }
144144
y: cint; {*< The y offset of the upper left corner of this text, in pixels, read-only. }
@@ -151,7 +151,7 @@ TTTF_TextData = record
151151

152152
props: TSDL_PropertiesID; {*< Custom properties associated with this text, read-only. This field is created as-needed using TTF_GetTextProperties() and the properties may be then set and read normally }
153153

154-
needs_engine_update: cbool; {*< True if the engine text needs to be updated }
154+
needs_engine_update: Boolean;{*< True if the engine text needs to be updated }
155155
engine: PTTF_TextEngine; {*< The engine used to render this text, read-only. }
156156
engine_text: Pointer; {*< The implementation-specific representation of this text }
157157
end;
@@ -181,7 +181,7 @@ TTTF_TextEngine = record
181181
* \param userdata the userdata Pointer in this interface.
182182
* \param text the text object being created.
183183
}
184-
CreateText: function(userdata: Pointer; text: PTTF_Text): cbool; cdecl;
184+
CreateText: function(userdata: Pointer; text: PTTF_Text): Boolean; cdecl;
185185

186186
{*
187187
* Destroy a text representation.

0 commit comments

Comments
 (0)