Every thing look's ok... if you are not using {$mode Delphi} then you must write code like this:
Maybe I'm wrong, but i think that FPC doesn't automaticly convert pointer types to non pointer types (PSDL_Surface to TSDL_Surface).Code:if ((X < GameScreen^.w) or (X > -TileSize)) and ((Y < GameScreen^.h) or (Y > -TileSize))
Bookmarks