[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Surface lost errors
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Surface lost errors
- From: "Stephen Parkes" <sparkes@xxxxxxxxxxxx>
- Date: Sat, 23 Dec 2006 11:07:40 +0000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 23 Dec 2006 06:07:49 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=M6R3ZYYl9yzDbWdgXZey4hS47qkf+dppEObgCJPv/XODZ3b1LvBLslYU7wAsrjvWFbKwD9fdKVrIOGNy5VRm2Ob2gacK71W792TNBknN0/oqq3psE2cemqCveiEplK+xf+Wfpy+CJdRgIsAbAO9oWZH7PENLjKxk7XUOGcXoa9I=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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