From 8cf7e1096f4a00bcca24ee6c790a428d3e7cb77d Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 4 Jun 2011 15:25:06 +0000 Subject: [PATCH] Fix performance bug in previous commit (pre-scale was also performed when entering other tools than 'brush rotate') git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1790 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/operatio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/operatio.c b/src/operatio.c index ee158e11..cbddd2d4 100644 --- a/src/operatio.c +++ b/src/operatio.c @@ -70,6 +70,10 @@ void Start_operation_stack(word new_operation) case OPERATION_GRAB_BRUSH: case OPERATION_POLYBRUSH: case OPERATION_STRETCH_BRUSH: + Operation_before_interrupt=Current_operation; + // On passe à l'operation demandée + Current_operation=new_operation; + break; case OPERATION_ROTATE_BRUSH: Begin_brush_rotation(); Operation_before_interrupt=Current_operation;