Update the viewport when changing the video mode