Well, for starters your source wouldn't compile if it had to. I tried fixing your errors, but they are far and many due to the changing of the lines. Try uploading a zip file with the source in it (this is always your best solution anyways). As has already been said, move away from graph, and if you are wanting to use fast graphics then make sure and use the right library.

SDL is a good cross platform cross rendering engine library, it requires some setup, and can be slower then raw DirectX or OpenGL depending on how you set it up and use it.

DirectX is Windows only, if you don't mind developing for Windows only then its a good choice. Read up on it either way.

OpenGL is the powerhouse of cross platform development with graphics (2D and 3D). Lots of tutorials out there and ALOT of information. Read up even if your not going to use it. You will find eventually that what is true for one lib is true for most all of them.

There are some fast graphic libraries for FPC that don't require 3rd party API's. Take a look at the lazarus CCR, sure some of it requires Lazarus, but most can be done in pure FPC if you have some patience. Of course, Lazarus is a good choice and gives you a Delphiesk IDE.

If you can upload a copy of your source (don't copy/paste again please), I'm sure you will find more help available, as a compileable version always makes life easier.