From b023b5f0cbc1203468e7b25e1b334cbb80adafc9 Mon Sep 17 00:00:00 2001 From: brolf Date: Thu, 18 Jul 2024 00:04:55 +0200 Subject: [PATCH] clear background --- src/modules/gfx_circles.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/modules/gfx_circles.c b/src/modules/gfx_circles.c index 968d8dd..4131197 100644 --- a/src/modules/gfx_circles.c +++ b/src/modules/gfx_circles.c @@ -176,6 +176,19 @@ int init(int moduleno, char* argstr) void reset(int _modno) { + for( u_int16_t x = 0; x < xmax; x++){ + + for( u_int16_t y = 0; y < ymax; y++){ + matrix_set(x,y, black); + } + } + + for( u_int16_t i = 0; i < P_MAX; i++ ){ + reinit_circle(&points[i]); + xor_circle(&points[i], i); + } + + nexttick = udate(); frame = 0; }