tmpPix=		pOld->colors[MOUSE_FG]; tmpName=	pOld->names[MOUSE_FG]; pOld->colors[MOUSE_FG]=	pOld->colors[MOUSE_BG]; pOld->names[MOUSE_FG]=	pOld->names[MOUSE_BG]; pOld->colors[MOUSE_BG]=	tmpPix; pOld->names[MOUSE_BG]=	tmpName;
EXCHANGE(pOld->colors[MOUSE_FG],pOld->colors[MOUSE_BG], tmpPix); EXCHANGE(pOld->names[MOUSE_FG],	pOld->names[MOUSE_BG], tmpName);
ReverseOldColors(void){register ScrnColors	*pOld= pOldColors;Pixel	 tmpPix;char	*tmpName;    if (pOld) {	/* change text cursor, if necesary */	if (pOld->colors[TEXT_CURSOR]==pOld->colors[TEXT_FG]) {	    pOld->colors[TEXT_CURSOR]=	pOld->colors[TEXT_BG];	    if (pOld->names[TEXT_CURSOR]) {		XtFree(pOldColors->names[TEXT_CURSOR]);		pOld->names[TEXT_CURSOR]= NULL;	    }	    if (pOld->names[TEXT_BG]) {		tmpName= XtMalloc(strlen(pOld->names[TEXT_BG])+1);		if (tmpName) {		    strcpy(tmpName,pOld->names[TEXT_BG]);		    pOld->names[TEXT_CURSOR]= tmpName;		}	    }	}	/* swap text FG and BG */	tmpPix=		pOld->colors[TEXT_FG];	tmpName=	pOld->names[TEXT_FG];	pOld->colors[TEXT_FG]=	pOld->colors[TEXT_BG];	pOld->names[TEXT_FG]=	pOld->names[TEXT_BG];	pOld->colors[TEXT_BG]=	tmpPix;	pOld->names[TEXT_BG]=	tmpName;	/* swap mouse FG and BG */	tmpPix=		pOld->colors[MOUSE_FG];	tmpName=	pOld->names[MOUSE_FG];	pOld->colors[MOUSE_FG]=	pOld->colors[MOUSE_BG];	pOld->names[MOUSE_FG]=	pOld->names[MOUSE_BG];	pOld->colors[MOUSE_BG]=	tmpPix;	pOld->names[MOUSE_BG]=	tmpName;	/* swap Tek FG and BG */	tmpPix=		pOld->colors[TEK_FG];	tmpName=	pOld->names[TEK_FG];	pOld->colors[TEK_FG]=	pOld->colors[TEK_BG];	pOld->names[TEK_FG]=	pOld->names[TEK_BG];	pOld->colors[TEK_BG]=	tmpPix;	pOld->names[TEK_BG]=	tmpName;    }    return;}