ref: 64e114cce121e55f0f90cb5692c5020d917aa202
parent: 8dd7ee300726872072075a5cdb35ebe9497e3adb
author: Simon Tatham <anakin@pobox.com>
date: Sun Jul 3 05:35:29 EDT 2005
draw_polygon() and draw_circle() have always had a portability constraint: because some front ends interpret `draw filled shape' to mean `including its boundary' while others interpret it to mean `not including its boundary' (and X seems to vacillate between the two opinions as it moves around the shape!), you MUST NOT draw a filled shape only. You can fill in one colour and outline in another, you can fill or outline in the same colour, or you can just outline, but just filling is a no-no. This leads to a _lot_ of double calls to these functions, so I've changed the interface. draw_circle() and draw_polygon() now each take two colour arguments, a fill colour (which can be -1 for none) and an outline colour (which must be valid). This should simplify code in the game back ends, while also reducing the possibility for coding error. [originally from svn r6047]