From d7b4a0359acdbfa2a7e4978a8265e5d624231c28 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 31 Jul 2013 10:54:04 -0400 Subject: [PATCH] further optimization of the drawing logic during undo/redo move --- pd/src/g_editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 0a3ba8dab..8b8f7128d 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -1009,6 +1009,7 @@ void canvas_undo_move(t_canvas *x, void *z, int action) if (action == UNDO_UNDO || action == UNDO_REDO) { int i; + do_not_redraw = 1; for (i = 0; i < buf->u_n; i++) { int x1, y1, x2, y2, newx, newy; @@ -1028,6 +1029,8 @@ void canvas_undo_move(t_canvas *x, void *z, int action) glist_select(x, y); } } + do_not_redraw = 0; + canvas_redraw(x); if (resortin) canvas_resortinlets(x); if (resortout) canvas_resortoutlets(x); } -- GitLab