How do I stop this from happening in SDL
where the background just stops. I want it to carry on too the left for ever or atleast the width of the image on the SDL_Surface here is a video to showcase the problem
http://www.youtube.com/watch?v=KROV7eq8RLo
and here is the code