Commit 6275bbc6 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Render.c: remove empty lines around XSync calls

make the code more readable
parent 45f6e41c
...@@ -748,9 +748,7 @@ int nxagentCreatePicture(PicturePtr pPicture, Mask mask) ...@@ -748,9 +748,7 @@ int nxagentCreatePicture(PicturePtr pPicture, Mask mask)
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
nxagentPicturePriv(pPicture) -> picture = id; nxagentPicturePriv(pPicture) -> picture = id;
...@@ -813,9 +811,7 @@ void nxagentDestroyPicture(PicturePtr pPicture) ...@@ -813,9 +811,7 @@ void nxagentDestroyPicture(PicturePtr pPicture)
nxagentPicturePriv(pPicture) -> picture); nxagentPicturePriv(pPicture) -> picture);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -872,9 +868,7 @@ FIXME: Is this useful or just a waste of bandwidth? ...@@ -872,9 +868,7 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
break; break;
...@@ -905,9 +899,7 @@ FIXME: Is this useful or just a waste of bandwidth? ...@@ -905,9 +899,7 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
break; break;
...@@ -951,9 +943,7 @@ FIXME: Is this useful or just a waste of bandwidth? ...@@ -951,9 +943,7 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
XDestroyRegion(reg); XDestroyRegion(reg);
...@@ -1190,9 +1180,7 @@ FIXME: Is this useful or just a waste of bandwidth? ...@@ -1190,9 +1180,7 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -1347,9 +1335,7 @@ void nxagentComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pD ...@@ -1347,9 +1335,7 @@ void nxagentComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pD
height); height);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -1840,9 +1826,7 @@ void nxagentCompositeRects(CARD8 op, PicturePtr pDst, xRenderColor *color, ...@@ -1840,9 +1826,7 @@ void nxagentCompositeRects(CARD8 op, PicturePtr pDst, xRenderColor *color,
nRect); nRect);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2002,9 +1986,7 @@ FIXME: Is this useful or just a waste of bandwidth? ...@@ -2002,9 +1986,7 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif #endif
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2075,9 +2057,7 @@ void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst, ...@@ -2075,9 +2057,7 @@ void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
ntri); ntri);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2148,9 +2128,7 @@ void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst, ...@@ -2148,9 +2128,7 @@ void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
npoint); npoint);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2221,9 +2199,7 @@ void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst, ...@@ -2221,9 +2199,7 @@ void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
npoint); npoint);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2242,17 +2218,13 @@ void nxagentQueryFormats(void) ...@@ -2242,17 +2218,13 @@ void nxagentQueryFormats(void)
if (XRenderQueryFormats(nxagentDisplay)) if (XRenderQueryFormats(nxagentDisplay))
{ {
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
info = (XExtDisplayInfo *) XRenderFindDisplay(nxagentDisplay); info = (XExtDisplayInfo *) XRenderFindDisplay(nxagentDisplay);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
xri = (XRenderInfo *) info -> data; xri = (XRenderInfo *) info -> data;
...@@ -2319,9 +2291,7 @@ void nxagentCreateGlyphSet(GlyphSetPtr pGly) ...@@ -2319,9 +2291,7 @@ void nxagentCreateGlyphSet(GlyphSetPtr pGly)
pGly -> remoteID = XRenderCreateGlyphSet(nxagentDisplay, pForm); pGly -> remoteID = XRenderCreateGlyphSet(nxagentDisplay, pForm);
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2451,9 +2421,7 @@ void nxagentAddGlyphs(GlyphSetPtr glyphSet, Glyph *gids, xGlyphInfo *gi, ...@@ -2451,9 +2421,7 @@ void nxagentAddGlyphs(GlyphSetPtr glyphSet, Glyph *gids, xGlyphInfo *gi,
} }
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
} }
...@@ -2685,9 +2653,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2) ...@@ -2685,9 +2653,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2)
} }
#ifdef DEBUG #ifdef DEBUG
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
nxagentFillGlyphSet(pGly); nxagentFillGlyphSet(pGly);
...@@ -2837,9 +2803,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2) ...@@ -2837,9 +2803,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2)
&attributes); &attributes);
#ifdef TEST #ifdef TEST
XSync(nxagentDisplay, 0); XSync(nxagentDisplay, 0);
#endif #endif
#ifdef TEST #ifdef TEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment