From 15c555a25df76e0e95bc8eaa2ca7ec80a7695a6c Mon Sep 17 00:00:00 2001 From: David Reveman Date: Tue, 1 Feb 2005 21:22:02 +0000 Subject: [PATCH] Use negative stride for trapezoid masks in Xgl --- hw/xgl/xgl.h | 2 +- hw/xgl/xgltrap.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/xgl/xgl.h b/hw/xgl/xgl.h index 930f3d038..eae94a1ac 100644 --- a/hw/xgl/xgl.h +++ b/hw/xgl/xgl.h @@ -337,7 +337,7 @@ typedef struct _xglPixmap { int score; Bool acceleratedTile; pointer bits; - unsigned int stride; + int stride; DamagePtr pDamage; BoxRec damageBox; BoxRec bitBox; diff --git a/hw/xgl/xgltrap.c b/hw/xgl/xgltrap.c index 723a43225..48d228d35 100644 --- a/hw/xgl/xgltrap.c +++ b/hw/xgl/xgltrap.c @@ -74,10 +74,9 @@ xglCreateMaskPicture (ScreenPtr pScreen, pPixmapPriv->target = xglPixmapTargetNo; - /* force negative stride + /* force negative stride */ if (pPixmapPriv->stride > 0) pPixmapPriv->stride = -pPixmapPriv->stride; - */ } pGC = GetScratchGC (pPixmap->drawable.depth, pScreen);