Skip to content

Commit

Permalink
Fix free draw area issue
Browse files Browse the repository at this point in the history
  • Loading branch information
potados99 committed Jun 17, 2019
1 parent 69fb593 commit 30bc652
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/paint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30bc652

Please sign in to comment.