SDL_SetColorKey & SDL_RLEACCEL problem

Hi all,
Can anyone please explain the following… When using SDL_SetColorKey
if I have SDL_RLEACCEL as

SDL_SetColorKey( FSurface, SDL_SRCCOLORKEY | SDL_RLEACCEL, SDL_MapRGB
( FSurface.Format, COLOURKEY_R, COLOURKEY_G, COLOURKEY_B ));

I get an access violatoin error.

while SDL_SetColorKey( FSurface, SDL_SRCCOLORKEY , SDL_MapRGB
( FSurface.Format, COLOURKEY_R, COLOURKEY_G, COLOURKEY_B ));

Works fine.

Any light shed on the problem would be greatly appreciated.

Thanks,

Dominique.–
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL;
Cross-platform game development with Pascal, has never been easier.

Hi all,
Can anyone please explain the following… When using SDL_SetColorKey
if I have SDL_RLEACCEL as

SDL_SetColorKey( FSurface, SDL_SRCCOLORKEY | SDL_RLEACCEL, SDL_MapRGB
( FSurface.Format, COLOURKEY_R, COLOURKEY_G, COLOURKEY_B ));

I get an access violatoin error.

while SDL_SetColorKey( FSurface, SDL_SRCCOLORKEY , SDL_MapRGB
( FSurface.Format, COLOURKEY_R, COLOURKEY_G, COLOURKEY_B ));

Works fine.

Any light shed on the problem would be greatly appreciated.

Make sure you’re using the latest release of SDL, and if it still happens,
please put together a minimal example that shows the problem and post it
to the list along with a full description of your platform and drivers.

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment