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

Re: [pygame] Fill doesn't seem to work as expected.



rect doesn't support the flags. Because it was brought over from some old version of SFL_gfx, and people haven't been exactly sure what to do with it, it hasn't really developed the way other stuff has.

On Sat, Aug 30, 2008 at 6:15 PM, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
Charlie Nolan wrote:

def naive_fill(self, color, rect, flags):
   blit_me = pygame.Surface(rect[2:])
   blit_me.fill(color, None, flags)
   self.blit(blit_me, rect)

Seems to me this is what draw.rect *should* be equivalent
to. Is that the case these days?

--
Greg