summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-09-11 21:06:12 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-09-11 21:06:12 +0200
commit568644197fc05174e1c76dccba25ce30b2a83c4a (patch)
tree085c25133e643c40b462c541a77de1f97abb3338 /wear_ui.cpp
parentMerge "ui: Refactor the declaration orders." (diff)
parentui: Remove text_top_. (diff)
downloadandroid_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar.gz
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar.bz2
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar.lz
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar.xz
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.tar.zst
android_bootable_recovery-568644197fc05174e1c76dccba25ce30b2a83c4a.zip
Diffstat (limited to 'wear_ui.cpp')
-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) {