1.0 Beta I think. Just try compile this code in Delphi, then compile it in Lazarus:
[pascal]
program Test;
uses SDL;
var
surface : PSDL_Surface;
begin
SDL_SetColorKey(surface, SDL_RLEACCEL or SDL_SRCCOLORKEY, SDL_MapRGB(surface.format, 255, 0, 255));
end.
[/pascal]
Runtime error doesn't matter.
-Edit-
Ok, I read some sources and I find where be an error. Well it should be "surface^.format" not "surface.format". Now everything should works fine
Bookmarks