summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-28 14:32:14 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-29 08:59:53 (GMT)
commit0884d22799c980e0063f81084a019682a9c8a796 (patch)
treee93c5f9e60acef6f8b9672d393762bfd823a631a
parent314947278d88f2aae184bfd6f8e89a723ed4580b (diff)
apps: calc: Correct after draw565 bug fix
Currently the coordindates used for line drawing are "tuned" for a bug in the line drawing code (and now draw off the edge of the screen). Fix this. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/apps/calc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/apps/calc.py b/wasp/apps/calc.py
index d7b4576..33188ee 100644
--- a/wasp/apps/calc.py
+++ b/wasp/apps/calc.py
@@ -84,9 +84,9 @@ class CalculatorApp():
draw.set_color(wasp.system.theme('accent-lo'))
for i in range(4):
# horizontal lines
- draw.line(x0=0,y0=(i+1)*47,x1=240,y1=(i+1)*47)
+ draw.line(x0=0,y0=(i+1)*47,x1=239,y1=(i+1)*47)
# vertical lines
- draw.line(x0=(i+1)*47,y0=47,x1=(i+1)*47,y1=240)
+ draw.line(x0=(i+1)*47,y0=47,x1=(i+1)*47,y1=239)
# Draw button label:
draw.set_color(wasp.system.theme('accent-hi'))
for x in range(5):