diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-28 20:04:25 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-03 18:20:10 -0800 |
commit | 9399caf2c12cbe1ed56f4f6b368c5811cb5d0458 (patch) | |
tree | 1c1459bf27d0022feea6f86f7eae0e211de8d048 /src/CrWindow.c | |
parent | b687440c28c7da6ee0ae44514d20248db5161606 (diff) |
unifdef MUSTCOPY
MUSTCOPY seems to have only been defined in <X11/Xmd.h> when building for
CRAY, to handle missing some sizes of integer type.
(mostly performed with unifdef, followed by some manual cleanup of
spacing/indenting in the remaining code)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/CrWindow.c')
-rw-r--r-- | src/CrWindow.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/CrWindow.c b/src/CrWindow.c index 23f7ddce..7b546018 100644 --- a/src/CrWindow.c +++ b/src/CrWindow.c @@ -57,20 +57,11 @@ Window XCreateSimpleWindow( wid = req->wid = XAllocID(dpy); req->mask = CWBackPixel | CWBorderPixel; -#ifdef MUSTCOPY - { - unsigned long lbackground = background, lborder = border; - dpy->bufptr -= 8; - Data32 (dpy, (long *) &lbackground, 4); - Data32 (dpy, (long *) &lborder, 4); - } -#else { register CARD32 *valuePtr = (CARD32 *) NEXTPTR(req,xCreateWindowReq); *valuePtr++ = background; *valuePtr = border; } -#endif /* MUSTCOPY */ UnlockDisplay(dpy); SyncHandle(); |