aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
authorlecoanet2002-11-05 09:52:31 +0000
committerlecoanet2002-11-05 09:52:31 +0000
commite7608f72cc5d4ebb429f18d6d6b609f35986111a (patch)
tree91d00df1fe6ab1253d87bc0cc019b2373b7325ab /generic/Group.c
parent09a105503755858a5c9e9d78cf3c0349f8eea052 (diff)
downloadtkzinc-e7608f72cc5d4ebb429f18d6d6b609f35986111a.zip
tkzinc-e7608f72cc5d4ebb429f18d6d6b609f35986111a.tar.gz
tkzinc-e7608f72cc5d4ebb429f18d6d6b609f35986111a.tar.bz2
tkzinc-e7608f72cc5d4ebb429f18d6d6b609f35986111a.tar.xz
Ajout du param�tre controls � la m�thode Coords.
Corrections suite au d�placement du champ fan dans la structure ZnStrip.
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c6
1 files changed, 5 insertions, 1 deletions
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)) {