aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-09-05 20:13:03 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-09-29 17:15:25 +0200
commit8fc7a8057f30f0fe7e559510b0392b0fe8eb925d (patch)
tree5fe3847502ef6db9ccb565c1f9211239313d64a6
parentfd274d058d3c86c4fc2e135ae9c2e876b303fda4 (diff)
downloadnx-libs-8fc7a8057f30f0fe7e559510b0392b0fe8eb925d.tar.gz
nx-libs-8fc7a8057f30f0fe7e559510b0392b0fe8eb925d.tar.bz2
nx-libs-8fc7a8057f30f0fe7e559510b0392b0fe8eb925d.zip
Render.c: remove some more unused functions
nxagentTriangles nxagentTriFan nxagentTriStrip
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Render.c219
1 files changed, 0 insertions, 219 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
index 5bd78eff0..6113a419a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -161,20 +161,8 @@ void nxagentTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
int ntrap, xTrapezoid *traps);
-void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int ntri, xTriangle *tris);
-
-void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points);
-
void nxagentChangePicture(PicturePtr pPicture, Mask mask);
-void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points);
-
void nxagentReferenceGlyphSet(GlyphSetPtr glyphSet);
void nxagentFreeGlyphs(GlyphSetPtr glyphSet, CARD32 *gids, int nglyph);
@@ -1877,213 +1865,6 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif
}
-void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int ntri, xTriangle *tris)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriangles: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, ntri);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriangles requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriangles: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriangles: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriangles(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XTriangle*)tris,
- ntri);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
-void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriStrip: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, npoint);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriStrip requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriStrip: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriStrip: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriStrip(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XPointFixed*)points,
- npoint);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
-void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriFan: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, npoint);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriFan requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriFan: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriFan: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriFan(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XPointFixed*)points,
- npoint);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
void nxagentQueryFormats(void)
{
#ifdef DEBUG