diff options
author | Egbert Eich <eich@suse.de> | 2006-03-30 18:48:11 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2006-03-30 18:48:11 +0000 |
commit | 9da1d2257d02155cc8b4541cf5fcb4e64d756945 (patch) | |
tree | e7698c668d752e51d4b6534245290390c293b138 /mi | |
parent | 6d7ad353bafe914f0b50887daaeaae89ada6ebd3 (diff) |
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.
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miwideline.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); } } |