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.
This commit is contained in:
Adam Jackson
2006-05-22 15:47:56 +00:00
parent cc3b882bd1
commit bc0c56c407
6 changed files with 58 additions and 4 deletions

View File

@@ -49,16 +49,27 @@ SOFTWARE.
#ifndef PIXMAPSTRUCT_H
#define PIXMAPSTRUCT_H
#include <X11/Xarch.h>
#include "pixmap.h"
#include "screenint.h"
#include "regionstr.h"
/*
* The padN members are unfortunate ABI BC. See fdo bug #6924.
*/
typedef struct _Drawable {
unsigned char type; /* DRAWABLE_<type> */
unsigned char class; /* specific to type */
unsigned char depth;
unsigned char bitsPerPixel;
#if defined(_XSERVER64)
XID pad0;
#endif
XID id; /* resource id */
#if defined(_XSERVER64)
XID pad1;
#endif
short x; /* window: screen absolute, pixmap: 0 */
short y; /* window: screen absolute, pixmap: 0 */
unsigned short width;