I am getting apparently random surface lost errors in my game.

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))

with load_bg() returning the surface but I still get the same error on the
second blit.  How is the surface being lost between loading it and blitting
it in the except section?

cheers guys
sparkes

--
Steve 'sparkes' Parkes - tshirts http://nerd.ws - code http://zx-81.com

Reply via email to