summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wasp/draw565.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/draw565.py b/wasp/draw565.py
index 92d39f6..2bb72ba 100644
--- a/wasp/draw565.py
+++ b/wasp/draw565.py
@@ -395,8 +395,8 @@ class Draw565(object):
if x1 < x0 or y1 < y0:
x0, x1 = x1, x0
y0, y1 = y1, y0
- w = width if dx == 0 else dx
- h = width if dy == 0 else -dy
+ w = width if dx == 0 else (dx + width - 1)
+ h = width if dy == 0 else (-dy + width - 1)
self.fill(color, x0, y0, w, h)
return
while True: