From 0884d22799c980e0063f81084a019682a9c8a796 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 28 Dec 2020 14:32:14 +0000 Subject: [PATCH] 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 --- wasp/apps/calc.py | 4 ++-- 1 file 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):