public void setScreenMode(ScreenConfig mode) throws ServiceException {
		if (mode.isCloneDesktop()) {
			DisplayMode desktop = Display.getDesktopDisplayMode();
			setScreenMode(desktop.getWidth(), desktop.getHeight(), true);
		} else {
			setScreenMode(mode.getWidth(), mode.getHeight(), mode.isFullscreen());			
		}
		setTitle(mode.getTitle());
		setVSync(mode.isVsync());
	}