Open
Description
SetColorKey requires an integer as the second parameter.
(SDL_surface.h; line: 446)
extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface, int flag, Uint32 key);
And SDL_FALSE & SDL_TRUE are also declared as integers.
(SDL_stdinc.h; line: 184)
typedef enum
{
SDL_FALSE = 0,
SDL_TRUE = 1
} SDL_bool;
So, in my opinion, TSDL_Bool should also be declared as an integer.
I modified the following in "sdlstdinc.inc":
type
TSDL_Bool = cint;
// TSDL_Bool = cbool;
Do you also think that this is more the case?
I am using Lazarus 2.2.4