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

Re: [pygame] tab rendering in text?



create the new surface with the SRCALPHA flag, 32 bits. pygame has its own custom destination alpha blitting, so this sort of thing should work great in pygame, where it can't in straight SDL.

newsurface = pygame.Surface(size, SRCALPHA, 32)
Thanks, that worked great. I'd tried just adding SRCALPHA but that hadn't worked. How does the 32 bits effect it so that it does work? Is that saying it's 24 bits with alpha enabled or is it something else? Just curious. Now to just work on making the code tighter/faster. :)

--
"When Government fears the people, it's liberty. When people fear the
Government, it's tyranny." -- Benjamin Franklin

Michael <mogmios@mlug.missouri.edu>
http://kavlon.org