public static void setBounds(int x1, int x2, int y1, int y2) {
		if (x1 < 0)
			x1 = 0;
		if (y1 < 0)
			y1 = 0;
		if (x2 > width)
			x2 = width;
		if (y2 > height)
			y2 = height;
		startX = x1;
		startY = y1;
		endX = x2;
		endY = y2;
		centerX = endX;
		centerY = endX / 2;
		anInt1387 = endY / 2;
	}