screen_ui: Fix a case that may truncate the last char.
ScreenRecoveryUI::DrawWrappedTextLines() should be called with kMarginWidth only. Because it's using a line limit of text_cols_, which is unaware of kMenuIdent. Bug: 64293520 Test: No missing char with long header text. Change-Id: Ib4d08de2c56473a483ff9964eb6cec31f8a74c9a
This commit is contained in:
parent
162b92323b
commit
13aa4a902b
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ void ScreenRecoveryUI::draw_screen_locked() {
|
|||
y += DrawTextLines(x, y, HasThreeButtons() ? REGULAR_HELP : LONG_PRESS_HELP);
|
||||
|
||||
SetColor(HEADER);
|
||||
y += DrawWrappedTextLines(x, y, menu_headers_);
|
||||
// Ignore kMenuIndent, which is not taken into account by text_cols_.
|
||||
y += DrawWrappedTextLines(kMarginWidth, y, menu_headers_);
|
||||
|
||||
SetColor(MENU);
|
||||
y += DrawHorizontalRule(y) + 4;
|
||||
|
|
Loading…
Reference in a new issue