e00d8dcb03 factored hidpi-scale in get_scaled_osd_dimensions(), so max_lines was dividing by it a second time.
e00d8dcb03