[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] drawing issues
well, this week arturo slugged in with a few problems with the
pygame.draw module. problems from crashes to minor uglies.
the first problem was biggest. drawing filled polygons with points
outside the surface area was causing problems. i found some (now)
obvious cases where the clipping was failing, and thus stuff was drawing
offscreen. this was definitely cause for a crash, and has been all
cleaned up.
the second problem involves drawing very wide lines. i have to admit
that the wide line drawing implemented in pygame.draw is a bit hackish.
there is a problem drawing wide lines that get clipped. once an end of
the line is clipped, visible gaps appear in the wide line. the wide line
drawer works ok for line widths around 5 or so. but bigger than that
and things get ugly.
i suppose the best solution for wide lines would be to use the polygon
drawer. for now if you really need wide lines, you can do that. hmm,
perhaps i should do that internally. just turn a wide line into a 4
point polygon and fill it?
well, what is the demand out there for wide line drawing? if someone
really needs it i can definitely bump it up on my priority list.
elsewise it goes to the back burner :]
the good news is the problems (and potential crashing) with polygon
drawing is cleaned up. this is all checked into cvs now (along with
fixed Rect comparisons and a smarter config_unix script)
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org