Fixed some incorrect behavior with certain UI elements when the window/display was not in 16:9.