menus: Do not clip text for hierarchical menus

When we have a hierarchical menu, do not clip the text.
Use case: `Length` unit menu now shows its `h`.

Fixes: #846

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-03-03 17:58:30 +01:00
parent 9484413d55
commit b06c1cf9d1
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -1278,7 +1278,7 @@ bool user_interface::draw_menus()
mcw -= mkw;
if (alignLeft)
trect.x1 += mkw;
else
else if (marker != L'')
trect.x2 -= mkw;
}
}