exa: a few cleanups

- Some warnings silenced.
- Some whitespace cleanup.
This commit is contained in:
Maarten Maathuis 2008-12-19 23:12:37 +01:00
parent aedd2f566d
commit 2db7b66863
2 changed files with 17 additions and 17 deletions

View File

@ -72,7 +72,7 @@ exaGetPixmapOffset(PixmapPtr pPix)
{ {
ExaScreenPriv (pPix->drawable.pScreen); ExaScreenPriv (pPix->drawable.pScreen);
return ((unsigned long)ExaGetPixmapAddress(pPix) - return ((unsigned long)(unsigned long *)ExaGetPixmapAddress(pPix) -
(unsigned long)pExaScr->info->memoryBase); (unsigned long)pExaScr->info->memoryBase);
} }

View File

@ -1054,15 +1054,15 @@ exaTrapezoids (CARD8 op, PicturePtr pSrc, PicturePtr pDst,
BoxRec bounds; BoxRec bounds;
if (maskFormat) { if (maskFormat) {
PicturePtr pPicture;
INT16 xDst, yDst;
INT16 xRel, yRel;
miTrapezoidBounds (ntrap, traps, &bounds); miTrapezoidBounds (ntrap, traps, &bounds);
if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2) if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2)
return; return;
PicturePtr pPicture;
INT16 xDst, yDst;
INT16 xRel, yRel;
xDst = traps[0].left.p1.x >> 16; xDst = traps[0].left.p1.x >> 16;
yDst = traps[0].left.p1.y >> 16; yDst = traps[0].left.p1.y >> 16;
@ -1118,15 +1118,15 @@ exaTriangles (CARD8 op, PicturePtr pSrc, PicturePtr pDst,
BoxRec bounds; BoxRec bounds;
if (maskFormat) { if (maskFormat) {
PicturePtr pPicture;
INT16 xDst, yDst;
INT16 xRel, yRel;
miTriangleBounds (ntri, tris, &bounds); miTriangleBounds (ntri, tris, &bounds);
if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2) if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2)
return; return;
PicturePtr pPicture;
INT16 xDst, yDst;
INT16 xRel, yRel;
xDst = tris[0].p1.x >> 16; xDst = tris[0].p1.x >> 16;
yDst = tris[0].p1.y >> 16; yDst = tris[0].p1.y >> 16;