X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lwlib%2Fxlwgcs.c;h=f72052295b81f0530bbe3c3717fb4d9bc2afe89e;hb=6b1f1b2af579009e8a95f9c79f3cfe119f2f595d;hp=3b6cd7e60f86b4445844a7e382cec8211b95a6b7;hpb=40402600969429d5253e62c6314a3eebbb21f027;p=chise%2Fxemacs-chise.git.1 diff --git a/lwlib/xlwgcs.c b/lwlib/xlwgcs.c index 3b6cd7e..f720522 100644 --- a/lwlib/xlwgcs.c +++ b/lwlib/xlwgcs.c @@ -1,25 +1,25 @@ /* Tabs Widget for XEmacs. Copyright (C) 1999 Edward A. Falk - + This file is part of XEmacs. - + XEmacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + XEmacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with XEmacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - + /* Synched up with: Gcs.c 1.7 */ - + /* #### This code is duplicated many times within lwlib and XEmacs. It should be modularised. */ @@ -162,15 +162,14 @@ * * If the widget's background is solid white or solid black, * this code just picks some numbers. (The choice is designed - * to be compatible with ThreeD interface.) + * to be compatibile with ThreeD interface.) */ #if XtSpecificationRelease < 5 -static GC XtAllocateGC(Widget, int, unsigned long, XGCValues *, - unsigned long, unsigned long) ; +static GC XtAllocateGC(Widget, int, u_long, XGCValues *, u_long, u_long) ; #endif @@ -187,7 +186,7 @@ GC AllocFgGC(Widget w, Pixel fg, Font font) { XGCValues values ; - unsigned long vmask, dcmask ; + u_long vmask, dcmask ; values.foreground = fg ; values.font = font ; @@ -234,7 +233,7 @@ AllocShadeGC(Widget w, Pixel fg, Pixel bg, Font font, int contrast, Bool be_nice_to_cmap) { XGCValues values ; - unsigned long vmask, dcmask ; + u_long vmask, dcmask ; values.foreground = fg ; values.background = bg ; @@ -343,7 +342,7 @@ AllocArmGC(Widget w, int contrast, Bool be_nice_to_cmap) GCFont|GCSubwindowMode|GCGraphicsExposures| GCDashOffset|GCDashList|GCArcMode) ; } - else + else #endif { values.foreground = AllocShadowPixel(w, 100-contrast) ; @@ -514,18 +513,18 @@ Draw3dBox(Widget w, int x, int y, int wid, int hgt, int s, GC topgc, GC botgc) #if XtSpecificationRelease < 5 static GC -XtAllocateGC(Widget w, int depth, unsigned long mask, XGCValues *values, - unsigned long dynamic, unsigned long dontcare) +XtAllocateGC(Widget w, int depth, u_long mask, XGCValues *values, + u_long dynamic, du_long ontcare) { return XtGetGC(w, mask, values) ; } #endif -static unsigned char screen0[2] = {0,0} ; -static unsigned char screen25[2] = {0,0xaa} ; -static unsigned char screen75[2] = {0xaa,0xff} ; -static unsigned char screen100[2] = {0xff,0xff} ; +static u_char screen0[2] = {0,0} ; +static u_char screen25[2] = {0,0xaa} ; +static u_char screen75[2] = {0xaa,0xff} ; +static u_char screen100[2] = {0xff,0xff} ; static Pixmap getDitherPixmap(Widget w, int contrast)