Closed igrr closed 8 years ago
Thanks for reporting, this won't qualify as a change in API because this is clearly a bug in the code. Good idea to improve fillRect
by using drawVerticalLine
!
Thanks for reporting. We decided to release this in 4.0.0
with some other fixes that could possible break existing code.
Currently the code in OLEDDisplay::drawRect is as follows:
Compared to
fillRect
function, this draws a rectangle which is 1 pixel wider and 1 pixel higher. Also it lacks a pixel at the lower-right corner.If I change that to
x + width - 1
andy + height - 1
, i get same size as forfillRect
. I'm not sure if such a "fix" qualifies as a change in API though :)And by the way, why is
fillRect
usingdrawHorizontalLine
? Isn'tdrawVerticalLine
faster because it can set up to 8 pixels at a time?