using_xdamage = 0; if (xdamage_present) { if (use_xdamage_hints) { using_xdamage = 1; }
if (! xdamage_present) { use_xdamage = 0;
void initialize_xdamage(void) {	sraRegionPtr *ptr;	int i, nreg;	using_xdamage = 0;	if (xdamage_present) {		if (use_xdamage_hints) {			using_xdamage = 1;		}	}	if (xdamage_regions)  {		ptr = xdamage_regions;		while (*ptr != NULL) {			sraRgnDestroy(*ptr);			ptr++;		}		free(xdamage_regions);		xdamage_regions = NULL;	}	if (using_xdamage) {		nreg = (xdamage_memory * NSCAN) + 2;		xdamage_regions = (sraRegionPtr *)		    malloc(nreg * sizeof(sraRegionPtr));		for (i = 0; i < nreg; i++) {			ptr = xdamage_regions+i;			if (i == nreg - 1) {				*ptr = NULL;			} else {				*ptr = sraRgnCreate();				sraRgnMakeEmpty(*ptr);			}		}		/* set so will be 0 in first collect_xdamage call */		xdamage_ticker = -1;	}}