From 9da1d2257d02155cc8b4541cf5fcb4e64d756945 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Thu, 30 Mar 2006 18:48:11 +0000 Subject: Fixes for some vsw4 failures on 64bit BE platforms such as PPC64 and s390x. Provided by Hong Bo Peng of IBM (slightly modified). Patches try to resolve some of the careless mixtures of ulong and uint (which are different size on 64bit). Bugzilla #6438. --- mi/miwideline.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mi') diff --git a/mi/miwideline.c b/mi/miwideline.c index cd65c7792..39b147d99 100644 --- a/mi/miwideline.c +++ b/mi/miwideline.c @@ -121,7 +121,8 @@ miFillPolyHelper (pDrawable, pGC, pixel, spanData, y, overall_height, oldPixel = pGC->fgPixel; if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, (XID *)&pixel, FALSE); + XID tmpPixel = (XID)pixel; + DoChangeGC (pGC, GCForeground, tmpPixel, FALSE); ValidateGC (pDrawable, pGC); } } @@ -219,7 +220,8 @@ miFillRectPolyHelper ( oldPixel = pGC->fgPixel; if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, (XID *)&pixel, FALSE); + XID tmpPixel = (XID)pixel; + DoChangeGC (pGC, GCForeground, tmpPixel, FALSE); ValidateGC (pDrawable, pGC); } (*pGC->ops->PolyFillRect) (pDrawable, pGC, 1, &rect); @@ -1070,7 +1072,8 @@ miLineArc ( oldPixel = pGC->fgPixel; if (pixel != oldPixel) { - DoChangeGC(pGC, GCForeground, (XID *)&pixel, FALSE); + XID tmpPixel = (XID)pixel; + DoChangeGC(pGC, GCForeground, tmpPixel, FALSE); ValidateGC (pDraw, pGC); } } -- cgit v1.2.3