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>
This commit is contained in:
parent
314947278d
commit
0884d22799
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue