Added the final display code for fullscreen mode.