Added if check for starting in fullscreen/windowed mode.