[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] weird refresh error



On Wednesday 06 September 2006 20:41, altern wrote:
> Richard Jones escribió:
> > On Wednesday 06 September 2006 20:12, altern wrote:
> >> is it pygame.locals.VIDEORESIZE the event i am looking for?
> >
> > I think it's VIDEOEXPOSE
> >
> >> any online examples on how to deal with this?
> >
> > Not really, you just have to re-draw the window...
>
> just tried it, I try to
> pygame.display.flip() when the event is triggered. I also print
> 'overlapping' to see if the event is happening.

Er, does that mean you get the event, or not?

Do you actually redraw your scene before you flip()? If not, you'll be 
flipping in stale screen buffer, which could look like anything, I guess.


    Richard