/* int wHandle= 0; int[] macEvent= new int[6]; while (OS.GetNextEvent((short)OS.updateMask, macEvent)) { if (macEvent[0] == OS.updateEvt) { wHandle= macEvent[1]; updateWindow(wHandle); }
int[] mask= new int[] { OS.kEventClassWindow, OS.kEventWindowDrawContent }; int[] evt= new int[1]; while (OS.ReceiveNextEvent(mask.length/2, mask, 0.01, true, evt) == OS.noErr) { int rc= OS.SendEventToEventTarget(evt[0], OS.GetEventDispatcherTarget()); if (rc != OS.noErr) System.out.println("Display.update: SendEventToEventTarget: " + rc); OS.ReleaseEvent(evt[0]);
public void update () {	checkDevice ();	/* AW	XAnyEvent event = new XAnyEvent ();	int mask = OS.ExposureMask | OS.ResizeRedirectMask |		OS.StructureNotifyMask | OS.SubstructureNotifyMask |		OS.SubstructureRedirectMask;	OS.XSync (xDisplay, false); OS.XSync (xDisplay, false);	while (OS.XCheckMaskEvent (xDisplay, mask, event)) OS.XtDispatchEvent (event);	*/	/*	int wHandle= 0;	int[] macEvent= new int[6];	while (OS.GetNextEvent((short)OS.updateMask, macEvent)) {		if (macEvent[0] == OS.updateEvt) {			wHandle= macEvent[1];			updateWindow(wHandle);		}	}	*/	/*	if (wHandle != 0) {		int port= OS.GetWindowPort(wHandle);		if (port != 0)			OS.QDFlushPortBuffer(port, 0);	}	*/}