[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] surface locking problem (v1.6 and later)
- To: pygame-users@xxxxxxxx
- Subject: [pygame] surface locking problem (v1.6 and later)
- From: James Mazer <james.mazer@xxxxxxxx>
- Date: Mon, 30 Jan 2006 13:08:24 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 30 Jan 2006 13:08:28 -0500
- Organization: Yale School of Medicine, Dept. of Neurobiology
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 1.5 (X11/20051201)
Hi -
I just ran into a problem with surface locking when I upgraded from
version 1.5 to 1.7.1. I've narrowed it down to a change between 1.6
and 1.6.2. Does anyone (Pete :-) know if I'm missing an obvious change
in handling of surface locking?
This is the old behavior (pygame-1.6 and earlier):
% python
Python 2.3.4 (#1, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame,pygame.image
>>> print pygame.ver
1.6
>>> x=pygame.image.load('/home/mazer/.background.jpg')
>>> print x.get_locked()
0
And this is the behavior starting with pygame 1.6.2 (up to 1.7.1):
% python
Python 2.3.4 (#1, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame,pygame.image
>>> print pygame.ver
1.6.2
>>> x=pygame.image.load('/home/mazer/.background.jpg')
>>> print x.get_locked()
1
And since blits fail when the surface is locked, this is bad news
for me.. If it matters -- I'm running FC3 and SDL 1.2.9
Thanks,
/jamie
--
phone: (203) 737-5853 mail: Department of Neurobiology
cell: (203) 809-4368 Yale School of Medicine
fax: (203) 785-5263 P.O. Box 208001
email: james.mazer@xxxxxxxx New Haven, CT 06520-8001