Mercurial > hg > xemacs-beta
diff lwlib/xlwgcs.c @ 5936:574f0cded429 cygwin
try to replace all nnnL or nnnUL constants with EMACS_[U]INT
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 13 Dec 2015 13:22:58 +0000 |
parents | 308d34e9f07d |
children |
line wrap: on
line diff
--- a/lwlib/xlwgcs.c Sat Dec 12 21:49:31 2015 +0000 +++ b/lwlib/xlwgcs.c Sun Dec 13 13:22:58 2015 +0000 @@ -193,7 +193,7 @@ GCDashList|GCArcMode|GCBackground|GCGraphicsExposures ; } - return XtAllocateGC(w, w->core.depth, vmask, &values, 0L, dcmask) ; + return XtAllocateGC(w, w->core.depth, vmask, &values, E0, dcmask) ; } @@ -252,11 +252,11 @@ values.stipple = getDitherPixmap(w, contrast) ; } - return XtAllocateGC(w, w->core.depth, vmask, &values, 0L, dcmask) ; + return XtAllocateGC(w, w->core.depth, vmask, &values, E0, dcmask) ; } else { dcmask |= GCBackground ; values.foreground = AllocGreyPixel(w, fg, bg, contrast) ; - return XtAllocateGC(w, w->core.depth, vmask, &values, 0L, dcmask) ; + return XtAllocateGC(w, w->core.depth, vmask, &values, E0, dcmask) ; } } @@ -277,7 +277,7 @@ return XtAllocateGC(w, w->core.depth, GCForeground, &values, - 0L, + E0, GCBackground|GCFont|GCSubwindowMode|GCGraphicsExposures| GCDashOffset|GCDashList|GCArcMode) ; } @@ -297,7 +297,7 @@ return XtAllocateGC(w, w->core.depth, GCForeground, &values, - 0L, + E0, GCBackground|GCFont|GCSubwindowMode|GCGraphicsExposures| GCDashOffset|GCDashList|GCArcMode) ; } @@ -321,18 +321,18 @@ else values.foreground = BlackPixelOfScreen(scr) ; values.fill_style = FillStippled ; - values.stipple = XmuCreateStippledPixmap(XtScreen(w), 1L, 0L, 1) ; + values.stipple = XmuCreateStippledPixmap(XtScreen(w), E1, E0, 1) ; return XtAllocateGC(w, w->core.depth, GCForeground|GCBackground|GCStipple|GCFillStyle, - &values, 0L, + &values, E0, GCFont|GCSubwindowMode|GCGraphicsExposures| GCDashOffset|GCDashList|GCArcMode) ; } else { values.foreground = AllocShadowPixel(w, 100-contrast) ; return XtAllocateGC(w, w->core.depth, GCForeground, &values, - 0L, + E0, GCBackground|GCFont|GCSubwindowMode|GCGraphicsExposures| GCDashOffset|GCDashList|GCArcMode) ; } @@ -510,7 +510,7 @@ else if( contrast <= 37 ) return XCreateBitmapFromData(dpy,win, (char *)screen25, 2,2) ; else if( contrast <= 62 ) - return XmuCreateStippledPixmap(XtScreen(w), 1L, 0L, 1) ; + return XmuCreateStippledPixmap(XtScreen(w), E1, E0, 1) ; else if( contrast <= 95 ) return XCreateBitmapFromData(dpy,win, (char *)screen75, 2,2) ; else