/* * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. * ALL RIGHTS RESERVED */ /* * Motif Release 1.2 */ #include #include #define MAX_ARGS 100 #ifdef VMS #ifndef MAIN #define WHERE globalref #else #define WHERE globaldef #endif #else #ifndef MAIN #define WHERE extern #else #define WHERE #endif #endif typedef unsigned char byte; #define CENTERX(f,x,str) ((x)-XTextWidth(f,str,strlen(str))/2) #define CENTERY(f,y) ((y)-((f->ascent+f->descent)/2)+f->ascent) /* X stuff */ WHERE Display *theDisp; WHERE int theScreen, dispcells; WHERE Colormap theCmap; WHERE Window rootW, mainW; WHERE GC theGC; WHERE unsigned long fcol,bcol; WHERE Font mfont; WHERE XFontStruct *mfinfo; WHERE Visual *theVisual; WHERE XImage *theImage, *expImage; /* global vars */ WHERE int iWIDE,iHIGH,eWIDE,eHIGH,expand,numcols,strip,nostrip; #ifdef VMS WHERE unsigned long ccols[256]; #else WHERE unsigned long cols[256]; #endif WHERE XColor defs[256]; WHERE char *cmd;