From aa316b066e5e23e8c6bbc666235eec1775372c4e Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sun, 14 Feb 2010 02:13:23 +0000 Subject: [PATCH] Reverted r1300 about Polygon overdraw and effects feedback (issue 131). The non-straight polygon lines was bigger problem than the specific case I raised. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1347 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- operatio.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/operatio.c b/operatio.c index fdcd98da..b84f2ab1 100644 --- a/operatio.c +++ b/operatio.c @@ -2025,14 +2025,8 @@ void Polygon_12_9(void) Operation_pop(&end_y); Operation_pop(&end_x); Paintbrush_shape=Paintbrush_shape_before_operation; - - // Avoid overdrawing the first point - if(start_x < end_x) end_x--; - else if(start_x>end_x) end_x++; - - if(start_y < end_y) end_y--; - else if(start_y>end_y) end_y++; - + // Le pied aurait été de ne pas repasser sur le 1er point de la 1ère ligne + // mais c'est pas possible :( Draw_line_permanent(start_x,start_y,end_x,end_y,color); Paintbrush_shape=PAINTBRUSH_SHAPE_POINT; @@ -2353,14 +2347,6 @@ void Polyform_12_8(void) // On efface la preview du segment annulé: Hide_line_preview(start_x,start_y,end_x,end_y); - // Avoid overdrawing the first point - if(start_x < initial_x) initial_x--; - else if(start_x>initial_x) initial_x++; - - if(start_y < initial_y) initial_y--; - else if(start_y>initial_y) initial_y++; - - // On affiche de façon définitive le bouclage du polygone: Draw_line_permanent(start_x,start_y,initial_x,initial_y,color);