On Mon Jul 31 15:24:34 2023 +0000, Jeffrey Smith wrote:
A couple of improvements I would suggest:
- Separate into zero-width vs zero-height tests.
- Test negative width/height as well, to see whether 0 is a special
case (error on value != 0) vs a boundary (error on value <= 0).
From what I know about gdiplus, negative width/height would just mean that the rectangle is to the left or right, respectively of it's origin(x,y in this particular case) so I didn't really bother testing that.