Fix overlap of in-game UI elements when using low resolutions

Fixes #6579
Merge pull request #6584 from obrakmann/fix6579_lowres_ui_overlap

Fix overlap of in-game UI elements at low resolutions