From e7608f72cc5d4ebb429f18d6d6b609f35986111a Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 5 Nov 2002 09:52:31 +0000 Subject: Ajout du param�tre controls � la m�thode Coords. Corrections suite au d�placement du champ fan dans la structure ZnStrip. --- generic/Group.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'generic') diff --git a/generic/Group.c b/generic/Group.c index 38f2f8a..1188aba 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -356,7 +356,10 @@ SetXShape(Item grp) * the tristrip, so we can use the corresponding * polygon instead of going through all the triangles. */ - if (tristrip.fan) { + if (tristrip.strips[j].fan) { + /* Skip the center */ + p++; + num_pts--; xp2 = xpts2 = ZnMalloc(num_pts*sizeof(XPoint)); for (i = 0 ; i < num_pts; i++, p++, xp2++) { xp2->x = (short) ((p->x - min_x) * width / max_x); @@ -1240,6 +1243,7 @@ Coords(Item item, int index, int cmd, ZnPoint **pts, + char **controls, int *num_pts) { if ((cmd == COORDS_ADD) || (cmd == COORDS_ADD_LAST) || (cmd == COORDS_REMOVE)) { -- cgit v1.1