Jump to content


SDL Not Erasing Old Images From The Screen


2 replies to this topic

#1 onyxthedog

    Senior Member

  • Members
  • PipPipPipPip
  • 467 posts

Posted 30 November 2009 - 07:54 PM

SDL doesn't seem to be erasing the sprites from their previous positions on the screen after I flip the screen. I change the destination and the old image is draw as well as the new.

Any ideas as to why?

Thanks,
Onyxthedog
/* Perfect_day.c */
#include <arcade>
#include <computer>
#include <drinks>
#include <hardware/high_end>
#include <snacks>
#pragma <responisiblities>
...........

#2 fireside

    Senior Member

  • Members
  • PipPipPipPip
  • 1271 posts

Posted 30 November 2009 - 08:18 PM

Been ages since I looked at SDL, but it probably means you are not redrawing the background.
Currently using Blender 2.5, FlashPunk, and Unity.

#3 onyxthedog

    Senior Member

  • Members
  • PipPipPipPip
  • 467 posts

Posted 30 November 2009 - 08:38 PM

I was looking at my other work to see what the difference was and it was that I didn't [i]have[\i] a background, seeing as I think I need a black background, too. I stand corrected.

Thanks Fireside
/* Perfect_day.c */
#include <arcade>
#include <computer>
#include <drinks>
#include <hardware/high_end>
#include <snacks>
#pragma <responisiblities>
...........





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users