[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] blitting rects




It's a shame that I can't use the rect object directly in the blit
function call. I've been trying this:

destsurface.blit(sourcesurface, source.rect)

But that doesn't work. Instead, I have to do this:

destsurface.blit(sourcesurface, source.rect[:2], source.rect[2:])

or

destsurface.blit(sourcesurface, (source.rect.left,
				source.rect.top),
				(source.rect.width
				source.rect.height))

Any thoughts? Am I missing something obvious?

-- 
David Clark - silenus@telus.net
Microsoft isn't the answer, it's the question.
Linux is the answer.
Microsoft is never the answer, unless the question is
"What isn't the answer?"

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org