On Sat, Jun 7, 2008 at 9:12 AM, Jake b <
ninmonkeys@xxxxxxxxx> wrote:
I was able to get it working by manually unlocking. It just seemed weird design:
# (1) before needing pixels
init()
# ...
draw()
self.screen.blit ( image, dest_rect )
# (2) adding pixel refs; breaks blit down the line
init()
self.pixels = pygame.PixelArray( self.screen )
draw()
self.screen.blit ( image, dest_rect )
# (3) which does an exception, but you can fix it:
init()
self.pixels = pygame.PixelArray( self.screen )
self.screen.unlock()
draw()
self.screen.blit ( image, dest_rect )
--
Jake