Is this really a problem tho'? Don't take this the wrong way, but in 20+ years of programming, drawing a rectangle (solid or otherwise) has never really come up as a problem that one might have.
Thus I respectfully inquire as to what kind of program you're writing where the ability to draw rectangles is such a significant matter.
Thus I respectfully inquire as to what kind of program you're writing where the ability to draw rectangles is such a significant matter.