Fix computation of the display aspect ratio.