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/Rectangle.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'generic/Rectangle.c') diff --git a/generic/Rectangle.c b/generic/Rectangle.c index 500473c..a7ffb81 100644 --- a/generic/Rectangle.c +++ b/generic/Rectangle.c @@ -290,7 +290,7 @@ Query(ZnItem item, int argc __unused, Tcl_Obj *CONST argv[]) { - if (ZnQueryAttribute(item->wi, item, rect_attrs, argv[0]) == TCL_ERROR) { + if (ZnQueryAttribute(item->wi->interp, item, rect_attrs, argv[0]) == TCL_ERROR) { return TCL_ERROR; } @@ -788,8 +788,8 @@ GetClipVertices(ZnItem item, ZnPoint *points; if (ISSET(rect->flags, ALIGNED_BIT)) { - ZnListAssertSize(item->wi->work_pts, 2); - points = ZnListArray(item->wi->work_pts); + ZnListAssertSize(ZnWorkPoints, 2); + points = ZnListArray(ZnWorkPoints); ZnTriStrip1(tristrip, points, 2, False); tristrip->strips[0].fan = False; @@ -811,8 +811,8 @@ GetClipVertices(ZnItem item, } } else { - ZnListAssertSize(item->wi->work_pts, 4); - points = ZnListArray(item->wi->work_pts); + ZnListAssertSize(ZnWorkPoints, 4); + points = ZnListArray(ZnWorkPoints); points[0] = rect->dev[1]; points[1] = rect->dev[2]; points[2] = rect->dev[0]; @@ -924,11 +924,11 @@ GetAnchor(ZnItem item, ********************************************************************************** */ static ZnItemClassStruct RECTANGLE_ITEM_CLASS = { - sizeof(RectangleItemStruct), - 0, /* num_parts */ - False, /* has_anchors */ "rectangle", + sizeof(RectangleItemStruct), rect_attrs, + 0, /* num_parts */ + 0, /* flags */ -1, Init, Clone, -- cgit v1.1