@@ -135,7 +135,7 @@ interface
135135{ $I sdlatomic.inc} // 2.0.20
136136{ $I sdlmutex.inc} // 2.26.5
137137{ $I sdltimer.inc} // 2.0.18
138- { $I sdlpixels.inc} // 2.0.14 WIP
138+ { $I sdlpixels.inc} // 2.26.5
139139{ $I sdlrect.inc} // 2.24.0
140140{ $I sdlrwops.inc} // 2.0.14
141141{ $I sdlaudio.inc} // 2.26.3
@@ -353,27 +353,27 @@ function SDL_AUDIO_ISUNSIGNED(x: Cardinal): Cardinal;
353353
354354// from "sdl_pixels.h"
355355
356- function SDL_PIXELFLAG (X: Cardinal ): Cardinal ;
356+ function SDL_PIXELFLAG (X: cuint32 ): cuint32 ;
357357begin
358358 Result := (X shr 28 ) and $0F ;
359359end ;
360360
361- function SDL_PIXELTYPE (X: Cardinal ): Cardinal ;
361+ function SDL_PIXELTYPE (X: cuint32 ): cuint32 ;
362362begin
363363 Result := (X shr 24 ) and $0F ;
364364end ;
365365
366- function SDL_PIXELORDER (X: Cardinal ): Cardinal ;
366+ function SDL_PIXELORDER (X: cuint32 ): cuint32 ;
367367begin
368368 Result := (X shr 20 ) and $0F ;
369369end ;
370370
371- function SDL_PIXELLAYOUT (X: Cardinal ): Cardinal ;
371+ function SDL_PIXELLAYOUT (X: cuint32 ): cuint32 ;
372372begin
373373 Result := (X shr 16 ) and $0F ;
374374end ;
375375
376- function SDL_BITSPERPIXEL (X: Cardinal ): Cardinal ;
376+ function SDL_BITSPERPIXEL (X: cuint32 ): cuint32 ;
377377begin
378378 Result := (X shr 8 ) and $FF;
379379end ;
0 commit comments