Replying to:chicken
So, if the center of the circle is within bounds, then it just GPAINTs? I'm confused, because that still doesn't solve the problem with overlapping shapes.
GPAINT border mode solves this. If you include a "border color" as the last argument to the GPAINT call, the paint continues over every color until it reaches the border color, instead of constraining to a contiguous area of color.
You can see he draws the circle with a color value of 8, and then specifies that as the paint border.