[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [BUG] pygame-ctypes
- To: pygame <pygame-users@xxxxxxxx>
- Subject: [pygame] [BUG] pygame-ctypes
- From: Phil Hassey <philhassey@xxxxxxxxx>
- Date: Mon, 21 Aug 2006 06:38:49 -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 09:38:57 -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=2QPyQzCB5w2kDQ3HFDjBvwuaxbShP4/4WVvIOLDSWYn8DHJPsaAp75VTA/wg52xtr/B4wQLH2Zm3e1XoNNyiyZ2PU9ZU2hMI9YUS2FjNLLgWqpDrzaZz5TO12+K1PY7PHHHTIZQ4vC8UU2mCe0+bIUXwLbZ4wGHB9oZxbUUVxvI= ;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hey,
When I run this example and press the letter 'a':
[phil@localhost examples_pygame]$ python blit_blends.py
press keys 1-5 to change image to blit.
A - ADD, S- SUB, M- MULT, - MIN, + MAX
one pixel is:[(99, 0, 0, 255)]:
press keys 1-5 to change image to blit.
A - ADD, S- SUB, M- MULT, - MIN, + MAX
Traceback (most recent call last):
File "blit_blends.py", line 163, in ?
main()
File "blit_blends.py", line 77, in main
im1.blit(img_to_blit, (0,0), None, blits[event.key])
File "/usr/lib/python2.4/site-packages/pygame/surface.py", line 199, in blit
_surface_blit(self, source, destrect, sourcerect, special_flags)
File "/usr/lib/python2.4/site-packages/pygame/surface.py", line 1155, in _surface_blit
result = _software_blit(src, srcrect, dst, dstrect, special_flags)
File
"/usr/lib/python2.4/site-packages/pygame/surface.py", line 1347, in _software_blit
dR = array.minimum(dR + sR, 255)
TypeError: function not supported for these types, and can't coerce to supported types
Thanks!
Phil
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.