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
This commit is contained in:
parent
25e8943e4c
commit
aa316b066e
18
operatio.c
18
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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user