mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 11:22:45 +01:00
Fix: Don't include ellipsis width in RTL truncation offset. (#14400)
This caused the right-most glyphs to be truncated.
This commit is contained in:
@@ -542,7 +542,7 @@ static int DrawLayoutLine(const ParagraphLayouter::Line &line, int y, int left,
|
||||
|
||||
if (_current_text_dir == TD_RTL) {
|
||||
min_x += 3 * dot_width;
|
||||
offset_x = w - 3 * dot_width - max_w;
|
||||
offset_x = w - max_w;
|
||||
} else {
|
||||
max_x -= 3 * dot_width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user