w += y;
h += y;
private static Rectangle limitBounds (vWindow win, int x, int y, int w, int h) {    // adjust negative width and height    if (w < 0) {	x -= (w = -w);    }    if (h < 0) {	y -= (h = -h);    }    // factor in dx/dy    x += win.dx;    y += win.dy;    // trim to image bounds    if (x < 0) {	w += x;	x = 0;    }    if (y < 0) {	w += y;	y = 0;    }    if (w > win.getWidth() - x) {	w = win.getWidth() - x;    }    if (h > win.getHeight() - y) {	h = win.getHeight() - y;    }    if (w <= 0 || h <= 0) {	return new Rectangle(0, 0, 0, 0);    } else {        return new Rectangle(x, y, w, h);    }}