From bccc75526f55d54758d252e0dbae7cab3e07bd8e Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 30 Apr 2004 12:08:17 +0000 Subject: Modification of ZnQueryAttribute signature Adaptation for the new global variables Reworking of the class structure --- generic/Arc.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'generic/Arc.c') diff --git a/generic/Arc.c b/generic/Arc.c index be6508d..4bca94d 100644 --- a/generic/Arc.c +++ b/generic/Arc.c @@ -339,7 +339,7 @@ Query(ZnItem item, int argc __unused, Tcl_Obj *CONST argv[]) { - if (ZnQueryAttribute(item->wi, item, arc_attrs, argv[0]) == TCL_ERROR) { + if (ZnQueryAttribute(item->wi->interp, item, arc_attrs, argv[0]) == TCL_ERROR) { return TCL_ERROR; } @@ -985,8 +985,8 @@ Draw(ZnItem item) (ISSET(arc->flags, FILLED_BIT) || (arc->line_width))) { p = ZnListArray(arc->render_shape); num_points = ZnListSize(arc->render_shape); - ZnListAssertSize(wi->work_xpts, num_points); - xp = ZnListArray(wi->work_xpts); + ZnListAssertSize(ZnWorkXPoints, num_points); + xp = ZnListArray(ZnWorkXPoints); for (i = 0; i < num_points; i++, p++) { xp[i].x = (short) p->x; xp[i].y = (short) p->y; @@ -1609,11 +1609,11 @@ GetClipVertices(ZnItem item, center.x = (item->item_bounding_box.corner.x + item->item_bounding_box.orig.x) / 2.0; center.y = (item->item_bounding_box.corner.y + item->item_bounding_box.orig.y) / 2.0; - ZnListEmpty(item->wi->work_pts); - ZnListAdd(item->wi->work_pts, ¢er, ZnListTail); - ZnListAppend(item->wi->work_pts, arc->render_shape); - ZnTriStrip1(tristrip, ZnListArray(item->wi->work_pts), - ZnListSize(item->wi->work_pts), True); + ZnListEmpty(ZnWorkPoints); + ZnListAdd(ZnWorkPoints, ¢er, ZnListTail); + ZnListAppend(ZnWorkPoints, arc->render_shape); + ZnTriStrip1(tristrip, ZnListArray(ZnWorkPoints), + ZnListSize(ZnWorkPoints), True); return False; } @@ -1758,11 +1758,11 @@ PostScript(ZnItem item __unused, ********************************************************************************** */ static ZnItemClassStruct ARC_ITEM_CLASS = { - sizeof(ArcItemStruct), - 0, /* num_parts */ - False, /* has_anchors */ "arc", + sizeof(ArcItemStruct), arc_attrs, + 0, /* num_parts */ + 0, /* flags */ -1, Init, Clone, -- cgit v1.1