diff --git a/adafruit_display_shapes/polygon.py b/adafruit_display_shapes/polygon.py index 111e7f3..cbf79c1 100755 --- a/adafruit_display_shapes/polygon.py +++ b/adafruit_display_shapes/polygon.py @@ -100,12 +100,12 @@ def _line(self, x0, y0, x1, y1, color): if x0 == x1: if y0 > y1: y0, y1 = y1, y0 - for _h in range(y0, y1): + for _h in range(y0, y1 + 1): self._bitmap[x0, _h] = color elif y0 == y1: if x0 > x1: x0, x1 = x1, x0 - for _w in range(x0, x1): + for _w in range(x0, x1 + 1): self._bitmap[_w, y0] = color else: steep = abs(y1 - y0) > abs(x1 - x0)