summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-09-09 06:25:32 +0200
committerTao Bao <tbao@google.com>2017-09-09 08:31:31 +0200
commitcb5524c23a761e37e8326edb95c8d1b684af352a (patch)
tree9ae4117d2f29cf9f2db2ed8d5717075272233ca2 /wear_ui.cpp
parentMerge "wear_ui: Remove Print()/ShowFile()/PutChar()." (diff)
downloadandroid_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.gz
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.bz2
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.lz
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.xz
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.zst
android_bootable_recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.zip
Diffstat (limited to '')
-rw-r--r--wear_ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 1859b131c..e2ee48804 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -133,7 +133,7 @@ void WearRecoveryUI::draw_screen_locked() {
// display from the bottom up, until we hit the top of the
// screen, the bottom of the menu, or we've displayed the
// entire text buffer.
- int row = (text_top_ + text_rows_ - 1) % text_rows_;
+ int row = text_row_;
size_t count = 0;
for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_;
ty -= char_height_, ++count) {