summaryrefslogtreecommitdiff
path: root/render/mitri.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-03-08 10:14:27 -0500
committerAdam Jackson <ajax@redhat.com>2011-03-14 14:09:05 -0400
commit0eb5b0fbcf1233a93f285ff1e1609fcbd01e7c79 (patch)
treee16377cb332b7dfbb3c3282186eb4b242fea6343 /render/mitri.c
parentc2af0cea02bd85f4d5954c16e34b4a8fb0fe2243 (diff)
Absorb miTriStrip() into CompositeTriStrip()
There is no need to virtualize this function that nobody cares about. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Keith Packard <keithp@keithp.com> Signed-off-by: Soren Sandmann <ssp@redhat.com>
Diffstat (limited to 'render/mitri.c')
-rw-r--r--render/mitri.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/render/mitri.c b/render/mitri.c
index c74192c1a..2ca7cc4d7 100644
--- a/render/mitri.c
+++ b/render/mitri.c
@@ -77,25 +77,6 @@ miTriStrip (CARD8 op,
int npoint,
xPointFixed *points)
{
- ScreenPtr pScreen = pDst->pDrawable->pScreen;
- PictureScreenPtr ps = GetPictureScreen(pScreen);
- xTriangle *tris, *tri;
- int ntri;
-
- if (npoint < 3)
- return;
- ntri = npoint - 2;
- tris = malloc(ntri * sizeof (xTriangle));
- if (!tris)
- return;
- for (tri = tris; npoint >= 3; npoint--, points++, tri++)
- {
- tri->p1 = points[0];
- tri->p2 = points[1];
- tri->p3 = points[2];
- }
- (*ps->Triangles) (op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
- free(tris);
}
void