Avoid non-integer display_scale and properly recenter the display