aboutsummaryrefslogtreecommitdiff
path: root/generic/Text.c
diff options
context:
space:
mode:
authorlecoanet2001-11-26 09:24:21 +0000
committerlecoanet2001-11-26 09:24:21 +0000
commit739d556eb6715c91d5e9748a7670badac289dfe2 (patch)
tree151c99e37172b7b5bf2665860553f4d135accd87 /generic/Text.c
parent1d767c74075553476c668dbf45547cf910e50697 (diff)
downloadtkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.zip
tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.gz
tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.bz2
tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.xz
Adaptation pour le clippnig non rectangulaire
Diffstat (limited to 'generic/Text.c')
-rw-r--r--generic/Text.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/Text.c b/generic/Text.c
index 02935f6..bc9a4a5 100644
--- a/generic/Text.c
+++ b/generic/Text.c
@@ -923,18 +923,19 @@ GetAnchor(Item item,
*
* GetClipVertices --
* Get the clipping shape.
+ * Never ever call TRI_FREE on the tristrip returned by GetClipVertices.
*
**********************************************************************************
*/
static ZnBool
-GetClipVertices(Item item,
- ZnPoly *poly)
+GetClipVertices(Item item,
+ ZnTriStrip *tristrip)
{
ZnPoint *points;
ZnListAssertSize(item->wi->work_pts, 2);
points = (ZnPoint *) ZnListArray(item->wi->work_pts);
- POLY_CONTOUR1(poly, points, 2);
+ TRI_STRIP1(tristrip, points, 2);
points[0] = item->item_bounding_box.orig;
points[1] = item->item_bounding_box.corner;
@@ -1341,6 +1342,7 @@ static ItemClassStruct TEXT_ITEM_CLASS = {
NULL, /* GetFieldSet */
GetAnchor,
GetClipVertices,
+ NULL, /* GetContours */
Coords,
InsertChars,
DeleteChars,