Well, you show your code (please indent - it will be easier to analyze), but don't say anything about what is your problem.
rubberman
Posting Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179
I notice in your SDL_SetVideoMode() call, you are using the SDL_HWSURFACE flag which forces the video rendering in the video hardware memory. Have you tried SDL_SWSURFACE, using system memory instead? It may be that your video hardware doesn't deal with this well.
Never mind! I see you have already solved this. Good for you.
rubberman
Posting Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179