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

Re: [pygame] Surface lost errors



On Sat, 2006-12-23 at 11:07 +0000, Stephen Parkes wrote:
> when using a hardware surface as a background image I started getting
> surface lost errors.  I wrapped the blit like this
> 
> try:
>    scr.blit(bg,(0,0)) 
> except:
>    bg = load_bg()
>    scr.blit(bg,(0,0))

perhaps it is the display surface that is getting lost? Windows pretty
much sucks with hardware acceleration because it rampages through
anything on the video  Not sure if it is possible to lose the actual
display surface though.