[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [BUG] pygame-ctypes -- some flags issue...
- To: pygame <pygame-users@xxxxxxxx>
- Subject: [pygame] [BUG] pygame-ctypes -- some flags issue...
- From: Phil Hassey <philhassey@xxxxxxxxx>
- Date: Mon, 21 Aug 2006 07:19:02 -0700 (PDT)
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 21 Aug 2006 10:19:12 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=x2BVdW6rZI6/Uykfik+8krZwh2HZa6co0YOWa1OW41EfFIueKC3mcXrO2LC9yugvF0UdQIlfJvResEF/cmLIDlSWZzrTiCxJrcybLw9T8cSaLNRitHgT42p5uhUQaJCXq/D18QmgVkMD/txRCVxAxBtUOxCWkQvpKgyIJZwuWA4= ;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hey,
It appears that the flags going into convert() are None instead of 0...
File "flames.py", line 12, in __init__
self.tmp1 = pygame.Surface((w,h+16)).convert(8)
File "/usr/lib/python2.4/site-packages/pygame/surface.py", line 253, in convert
if flags & SDL_SRCALPHA:
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
Phil
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.