diff options
Diffstat (limited to 'generic/Window.c')
-rw-r--r-- | generic/Window.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/Window.c b/generic/Window.c index eae6e84..d894d3c 100644 --- a/generic/Window.c +++ b/generic/Window.c @@ -584,8 +584,8 @@ GetAnchor(Item item, ********************************************************************************** */ static ZnBool -GetClipVertices(Item item, - ZnPoly *poly) +GetClipVertices(Item item, + ZnTriStrip *tristrip) { WindowItem wind = (WindowItem) item; int w=0, h=0; @@ -596,8 +596,8 @@ GetClipVertices(Item item, w = wind->real_width; h = wind->real_height; } - points = (ZnPoint *) ZnListArray(item->wi->work_pts); - POLY_CONTOUR1(poly, points, 2); + points = ZnListArray(item->wi->work_pts); + TRI_STRIP1(tristrip, points, 2); points[0] = wind->pos_dev; points[1].x = points[0].x + w; points[1].y = points[0].y + h; @@ -670,6 +670,7 @@ static ItemClassStruct WINDOW_ITEM_CLASS = { NULL, /* GetFieldSet */ GetAnchor, GetClipVertices, + NULL, /* GetContours */ Coords, NULL, /* InsertChars */ NULL, /* DeleteChars */ |