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

[pygame] [BUG] pygame-ctypes



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.