Update viewport settings.