summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-08-16 22:25:55 +0200
committerTao Bao <tbao@google.com>2017-08-17 02:04:53 +0200
commit2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca (patch)
tree7bdc1d4c4db0d4f837d2c81bba870f4f7e3fe1b4 /screen_ui.cpp
parentscreen_ui: Word-wrap menu headers. (diff)
downloadandroid_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar.gz
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar.bz2
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar.lz
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar.xz
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.tar.zst
android_bootable_recovery-2cf6fe2ced4c117d132afd2c6e40fe0d937d0fca.zip
Diffstat (limited to '')
-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;