From bd91a1076dc82d90ed36684f6729f408ab6a7056 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Mon, 20 Sep 2021 17:23:26 +0200 Subject: [PATCH] HeartApp: draw black line ahead of cursor Helps seeing where the cursor is when displaying data over previous screen ![image](https://user-images.githubusercontent.com/6101998/134028533-5f190252-ad71-43c5-accc-c2b7b6c49663.png) Signed-off-by: k --- wasp/apps/heart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wasp/apps/heart.py b/wasp/apps/heart.py index 5d181b0..66752d7 100644 --- a/wasp/apps/heart.py +++ b/wasp/apps/heart.py @@ -90,6 +90,8 @@ class HeartApp(): x = self._x draw.fill(0, x, 32, 1, 208-spl) draw.fill(color, x, 239-spl, 1, spl) + if x < 238: + draw.fill(0, x+1, 32, 2, 208) x += 2 if x >= 240: x = 0