diff options
author | Tao Bao <tbao@google.com> | 2017-09-11 21:06:12 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-11 21:06:12 +0200 |
commit | 568644197fc05174e1c76dccba25ce30b2a83c4a (patch) | |
tree | 085c25133e643c40b462c541a77de1f97abb3338 /wear_ui.cpp | |
parent | Merge "ui: Refactor the declaration orders." (diff) | |
parent | ui: Remove text_top_. (diff) | |
download | android_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.cpp | 2 |
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) { |