if (rate > 0) { repaint(10, x, y, w, h);
else repaint (100);
	public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {		int rate = -1;		if ((flags & (FRAMEBITS | ALLBITS)) != 0) {			rate = 0;		} else if ((flags & SOMEBITS) != 0) {			rate = 10;		}		if (rate > 0) {			repaint(10, x, y, w, h);		}		return ((flags & (ABORT | ALLBITS)) == 0);	}