Use negative stride for trapezoid masks in Xgl

This commit is contained in:
David Reveman 2005-02-01 21:22:02 +00:00
parent 2f0bdf77dd
commit 15c555a25d
2 changed files with 2 additions and 3 deletions

View File

@ -337,7 +337,7 @@ typedef struct _xglPixmap {
int score; int score;
Bool acceleratedTile; Bool acceleratedTile;
pointer bits; pointer bits;
unsigned int stride; int stride;
DamagePtr pDamage; DamagePtr pDamage;
BoxRec damageBox; BoxRec damageBox;
BoxRec bitBox; BoxRec bitBox;

View File

@ -74,10 +74,9 @@ xglCreateMaskPicture (ScreenPtr pScreen,
pPixmapPriv->target = xglPixmapTargetNo; pPixmapPriv->target = xglPixmapTargetNo;
/* force negative stride /* force negative stride */
if (pPixmapPriv->stride > 0) if (pPixmapPriv->stride > 0)
pPixmapPriv->stride = -pPixmapPriv->stride; pPixmapPriv->stride = -pPixmapPriv->stride;
*/
} }
pGC = GetScratchGC (pPixmap->drawable.depth, pScreen); pGC = GetScratchGC (pPixmap->drawable.depth, pScreen);