public void SetFullscreen(bool state) { if (state != Fullscreen && !GameConstants.FullscreenTogglable) throw UntogglableException("Fullscreen", GameConstants.XmlElements.FULLSCREEN_TOGGLABLE); Fullscreen = state; dirty = true; }