summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-08-17 02:16:04 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-17 02:16:04 +0200
commit2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6 (patch)
tree9983076998c090e3800e4b6eb9023d06aa62d7c1
parentMerge "screen_ui: Word-wrap menu headers." (diff)
parentscreen_ui: Fix a case that may truncate the last char. (diff)
downloadandroid_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar.gz
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar.bz2
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar.lz
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar.xz
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.tar.zst
android_bootable_recovery-2e99c38cfdfed4556b5ed7ae330f2d7e92e4aef6.zip
-rw-r--r--screen_ui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index e056512bd..a02550199 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -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;