HUD not centred and cannot be offset with `offset_x` when using `horizontal` + `horizontal_stretch=0` + `position=top-center`/`position=bottom-center`
Describe the bug
When using horizontal + horizontal_stretch=0 with position=top-center/position=bottom-center the gap to the left is a lot larger than the gap to the right of the HUD making it not aligned to the centre . You cannot use offset_x to offset the misalignment.
List relevant hardware/software information
- Linux Distribution: Arch Linux
- MangoHud version: v0.8.1-94-ga4b64a2
- GPU: AMD Radeon RX 7900 XTX
To Reproduce Steps to reproduce the behaviour:
- In the terminal test both
top-center&bottom-center, run:
MANGOHUD_CONFIG=legacy_layout=0,horizontal,horizontal_stretch=0,position=top-center,time,time_no_label,fps,frametime,frame_timing,cpu_stats,cpu_temp,cpu_power,gpu_stats,gpu_temp,gpu_junction_temp,gpu_power,vram,gpu_mem_temp,version mangohud vkcubeMANGOHUD_CONFIG=legacy_layout=0,horizontal,horizontal_stretch=0,position=bottom-center,time,time_no_label,fps,frametime,frame_timing,cpu_stats,cpu_temp,cpu_power,gpu_stats,gpu_temp,gpu_junction_temp,gpu_power,vram,gpu_mem_temp,version mangohud vkcube- Try to use
offset_x, in the terminal run:
MANGOHUD_CONFIG=legacy_layout=0,horizontal,horizontal_stretch=0,position=top-center,time,time_no_label,fps,frametime,frame_timing,cpu_stats,cpu_temp,cpu_power,gpu_stats,gpu_temp,gpu_junction_temp,gpu_power,vram,gpu_mem_temp,version,offset_x=1000 mangohud vkcubeMANGOHUD_CONFIG=legacy_layout=0,horizontal,horizontal_stretch=0,position=bottom-center,time,time_no_label,fps,frametime,frame_timing,cpu_stats,cpu_temp,cpu_power,gpu_stats,gpu_temp,gpu_junction_temp,gpu_power,vram,gpu_mem_temp,version,offset_x=1000 mangohud vkcube- See the HUD is not centred and
offset_xdoes nothing.
Expected behaviour
The HUD should be aligned to the centre when position=top-center/position=bottom-center is used (left and right gap should be be equal). The offset_x should be able to offset the HUD left or right determined by the value given.
Screenshots Using a 1080p resolution gives the best visual to show it not being centred.
horizontal + horizontal_stretch=0 + position=top-center
horizontal + horizontal_stretch=0 + position=bottom-center
Additional context None.
Source: flightlessmango/MangoHud