if (OS.HIVIEW) { display.needsPaint = true; if (invalRgn == 0) invalRgn = OS.NewRgn(); OS.UnionRgn (rgn, invalRgn, invalRgn); return; }
void invalWindowRgn (int window, int rgn) {	/*	* Bug in the Macintosh.  InvalidWindowRgn() will not invalidate	* the window when it is called from the default kEventWindowUpdate	* handler.  The fix is to detect that case, acumulate the region	* to invalidate and call InvalWindowRgn() after the default handler	* is done.  	*/	if (update) {		if (invalRgn == 0) invalRgn = OS.NewRgn();		OS.UnionRgn (rgn, invalRgn, invalRgn);	} else {		OS.InvalWindowRgn (window, rgn);	}	}