SDL screen not updating properly?
I'm not sure which part of my code you'd like to see, and I don't think posting all 5 of my source files is neccessary, so I'm just going to ask a general question. In my SDL program, I have a sprite that when moved(responding to appropriate key presses) it does move, yet it leaves a sort of "drag"(bits of the sprite's image) behind. This "drag" sticks and stays on the screen, naturally this is not desirable. I DO call SDL_Flip each loop and in past SDL programs I've not encountered this. Below is a screenshot, and if anyone has any idea as to what needs to be fixed, I'd appreciate it. If you need to see a certain section of code, then I'll be happy to oblige. Thanks again.