erkkah / tigr

TIGR - the TIny GRaphics library for Windows, macOS, Linux, iOS and Android.
Other
761 stars 48 forks source link

Minor bugfixes for tigrLine/tigrRect #38

Closed RandyGaul closed 1 year ago

RandyGaul commented 2 years ago

I noticed the comment for tigrLine in the header was incorrect. The endpoint of the line is not drawn, despite saying it was. Then I noticed the tigrRect function overdraws the corners and doesn't handle the case of w or h being 1 properly. The comment for tigrRect says calling with (1,1) should behave the same as tigrPlot, which isn't the case due to overdraw.

erkkah commented 1 year ago

Closing. Fixes are included in #40.