Commit d7b4a035 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

further optimization of the drawing logic during undo/redo move

parent f01b4909
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment