public boolean displayModesMatch(DisplayMode dm1, DisplayMode dm2) {
		if (dm1.getHeight() != dm2.getHeight() || dm1.getWidth() != dm2.getWidth()) {
			return false;
		}
		if (dm1.getBitDepth() != DisplayMode.BIT_DEPTH_MULTI && dm2.getBitDepth() != DisplayMode.BIT_DEPTH_MULTI && dm1.getBitDepth() != dm2.getBitDepth()) {
			return false;
		}
		if (dm1.getRefreshRate() != DisplayMode.REFRESH_RATE_UNKNOWN && dm2.getRefreshRate() != DisplayMode.REFRESH_RATE_UNKNOWN && dm1.getRefreshRate() != dm2.getRefreshRate()) {
			return false;
		}
		return true;
	}