From 85c85c19a3b44586c5f2da0c2196bd19584ebaf3 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 5 Nov 2002 09:38:01 +0000 Subject: Ajout d'un param�tre fan � la fonction TRI_STRIP1. Ajout d'un param�tre controls � la m�thode Coords. --- generic/Rectangle.c | 7 ++++--- generic/Window.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'generic') diff --git a/generic/Rectangle.c b/generic/Rectangle.c index 5418411..bc7a814 100644 --- a/generic/Rectangle.c +++ b/generic/Rectangle.c @@ -776,8 +776,8 @@ GetClipVertices(Item item, if (ISSET(rect->flags, ALIGNED_BIT)) { ZnListAssertSize(item->wi->work_pts, 2); points = (ZnPoint *) ZnListArray(item->wi->work_pts); - TRI_STRIP1(tristrip, points, 2); - tristrip->fan = False; + TRI_STRIP1(tristrip, points, 2, False); + tristrip->strips[0].fan = False; if (rect->dev[0].x < rect->dev[2].x) { points[0].x = rect->dev[0].x; @@ -797,7 +797,7 @@ GetClipVertices(Item item, } } else { - TRI_STRIP1(tristrip, rect->dev, 4); + TRI_STRIP1(tristrip, rect->dev, 4, False); } return ISSET(rect->flags, ALIGNED_BIT); @@ -818,6 +818,7 @@ Coords(Item item, int index, int cmd, ZnPoint **pts, + char **controls, int *num_pts) { RectangleItem rect = (RectangleItem) item; diff --git a/generic/Window.c b/generic/Window.c index 063b446..c577ff6 100644 --- a/generic/Window.c +++ b/generic/Window.c @@ -595,7 +595,7 @@ GetClipVertices(Item item, h = wind->real_height; } points = ZnListArray(item->wi->work_pts); - TRI_STRIP1(tristrip, points, 2); + TRI_STRIP1(tristrip, points, 2, False); points[0] = wind->pos_dev; points[1].x = points[0].x + w; points[1].y = points[0].y + h; @@ -620,6 +620,7 @@ Coords(Item item, int index, int cmd, ZnPoint **pts, + char **controls, int *num_pts) { WindowItem wind = (WindowItem) item; -- cgit v1.1