diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-05-22 15:47:56 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-05-22 15:47:56 +0000 |
commit | bc0c56c407117d1545e20d21f7d30eb3472d618b (patch) | |
tree | cb7df5ccbd520f2727b2b91ac18e65a59aed9bf5 /dix/colormap.c | |
parent | cc3b882bd141218052cdde0144fc2a707ceee83d (diff) |
Bug #6924: Restore the ABI for DrawableRec and ColormapRec to the state
they were in prior to the fix for #6438. Based on a patch from Andy
Ritger.
Diffstat (limited to 'dix/colormap.c')
-rw-r--r-- | dix/colormap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dix/colormap.c b/dix/colormap.c index 900949c81..a448010ea 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xserver/xorg/dix/colormap.c,v 1.11 2005/09/05 07:40:50 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dix/colormap.c,v 1.12 2006/02/15 20:44:12 ajax Exp $ */ /* $XFree86: xc/programs/Xserver/dix/colormap.c,v 3.11 2003/11/03 05:10:59 tsi Exp $ */ /*********************************************************** @@ -280,6 +280,13 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual, pmap = (ColormapPtr) xalloc(sizebytes); if (!pmap) return (BadAlloc); +#if defined(_XSERVER64) + pmap->pad0 = 0; + pmap->pad1 = 0; +#if (X_BYTE_ORDER == X_LITTLE_ENDIAN) + pmap->pad2 = 0; +#endif +#endif pmap->red = (EntryPtr)((char *)pmap + sizeof(ColormapRec)); sizebytes = size * sizeof(Entry); pmap->clientPixelsRed = (Pixel **)((char *)pmap->red + sizebytes); |