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

[pygame] surface locking problem (v1.6 and later)



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