summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2006-03-30 18:48:11 +0000
committerEgbert Eich <eich@suse.de>2006-03-30 18:48:11 +0000
commit9da1d2257d02155cc8b4541cf5fcb4e64d756945 (patch)
treee7698c668d752e51d4b6534245290390c293b138
parent6d7ad353bafe914f0b50887daaeaae89ada6ebd3 (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.
-rw-r--r--ChangeLog11
-rw-r--r--include/colormapst.h2
-rw-r--r--include/pixmapstr.h2
-rw-r--r--mi/miwideline.c9
4 files changed, 19 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 0583b6004..7294b5235 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-03-30 Egbert Eich <eich_at_freedesktop_dot_org>
+
+ * include/colormapst.h:
+ * include/pixmapstr.h:
+ * mi/miwideline.c: (miFillRectPolyHelper), (miLineArc):
+ 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.
+
2006-03-29 Kristian Høgsberg <krh@redhat.com>
* GL/glx/indirect_dispatch.c:
diff --git a/include/colormapst.h b/include/colormapst.h
index 5ceee9870..d2422ea85 100644
--- a/include/colormapst.h
+++ b/include/colormapst.h
@@ -97,7 +97,7 @@ typedef struct _ColormapRec
{
VisualPtr pVisual;
short class; /* PseudoColor or DirectColor */
- long mid; /* client's name for colormap */
+ XID mid; /* client's name for colormap */
ScreenPtr pScreen; /* screen map is associated with */
short flags; /* 1 = IsDefault
* 2 = AllAllocated */
diff --git a/include/pixmapstr.h b/include/pixmapstr.h
index 22a1f1025..272ce6869 100644
--- a/include/pixmapstr.h
+++ b/include/pixmapstr.h
@@ -58,7 +58,7 @@ typedef struct _Drawable {
unsigned char class; /* specific to type */
unsigned char depth;
unsigned char bitsPerPixel;
- unsigned long id; /* resource id */
+ XID id; /* resource id */
short x; /* window: screen absolute, pixmap: 0 */
short y; /* window: screen absolute, pixmap: 0 */
unsigned short width;
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);
}
}