diff options
Diffstat (limited to 'xorg-server/miext/damage/damage.c')
-rw-r--r-- | xorg-server/miext/damage/damage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xorg-server/miext/damage/damage.c b/xorg-server/miext/damage/damage.c index 2d2b4228f..445602253 100644 --- a/xorg-server/miext/damage/damage.c +++ b/xorg-server/miext/damage/damage.c @@ -1227,9 +1227,9 @@ damagePolyFillRect(DrawablePtr pDrawable, int nRectsTmp = nRects; box.x1 = pRectsTmp->x; - box.x2 = box.x1 + pRectsTmp->width; + box.x2 = box.x1 + (short)pRectsTmp->width; box.y1 = pRectsTmp->y; - box.y2 = box.y1 + pRectsTmp->height; + box.y2 = box.y1 + (short)pRectsTmp->height; while (--nRectsTmp) { pRectsTmp++; @@ -1941,7 +1941,7 @@ DamageRegionRendered(DrawablePtr pDrawable, DamagePtr pDamage, /* This call is very odd, i'm leaving it intact for API sake, but please don't use it. */ void -DamageDamageRegion(DrawablePtr pDrawable, RegionPtr pRegion) +DamageDamageRegion(DrawablePtr pDrawable, const RegionPtr pRegion) { damageRegionAppend(pDrawable, pRegion, FALSE, -1); |