diff options
author | lecoanet | 2003-12-11 08:12:28 +0000 |
---|---|---|
committer | lecoanet | 2003-12-11 08:12:28 +0000 |
commit | 9c9b36fa1e164b5d23c6f50c50c2205a3dc44b99 (patch) | |
tree | 4a6d7fa2ba64f1ee409f746ae48015ae69ecae0a /generic | |
parent | cd83d14acf1a7356b7bd361f9357bbd44faa9cd5 (diff) | |
download | tkzinc-9c9b36fa1e164b5d23c6f50c50c2205a3dc44b99.zip tkzinc-9c9b36fa1e164b5d23c6f50c50c2205a3dc44b99.tar.gz tkzinc-9c9b36fa1e164b5d23c6f50c50c2205a3dc44b99.tar.bz2 tkzinc-9c9b36fa1e164b5d23c6f50c50c2205a3dc44b99.tar.xz |
* (GetClipVertices): Fixed a bug on the tristrip returned
in openGL mode. The order of the returned triangle vertices
didn't describe a rectangle.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Icon.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/Icon.c b/generic/Icon.c index 4503492..3e35827 100644 --- a/generic/Icon.c +++ b/generic/Icon.c @@ -645,7 +645,13 @@ GetClipVertices(ZnItem item, ZnPoint *points; if (item->wi->render) { - ZnTriStrip1(tristrip, icon->dev, 4, False); + ZnListAssertSize(item->wi->work_pts, 4); + points = ZnListArray(item->wi->work_pts); + points[0] = icon->dev[1]; + points[1] = icon->dev[2]; + points[2] = icon->dev[0]; + points[3] = icon->dev[3]; + ZnTriStrip1(tristrip, points, 4, False); return False; } |