From 30bc6527d70987a5c25e745c1af13daacad59858 Mon Sep 17 00:00:00 2001 From: potados99 Date: Mon, 17 Jun 2019 14:46:48 +0900 Subject: [PATCH] Fix free draw area issue --- src/paint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/paint.c b/src/paint.c index 20a0982..08c2554 100644 --- a/src/paint.c +++ b/src/paint.c @@ -539,9 +539,8 @@ static inline void _on_canvas_touched(struct paint *context, int x, int y) { shape_add_point(shape, x, y); - disp_set_direct(true); disp_draw_linep(context->last_x, context->last_y, x, y, context->draw_color); - disp_set_direct(false); + _redraw_areap(context, context->last_x, context->last_y, x, y); return; }