Hi

I was estudying the SDL tutorial of the Lazy Foo and I translated one from c++ to delphi. But I modified the collision function. I used the SDL_CollidePixel function from lib SDL_Collide.
My program crash when the dot move in position X=20 and y=140. I dont know why? Some one help me please.

The code is here: http://rapidshare.com/files/1806994/...llide.zip.html

The crash is here:
Code:
...
      4:
      begin
[color=red]=>        PixelColor := PUint32( bits )^;  (Line 244)[/color]
      end;
...

Sorry, my english is bad.