diff options
author | Tao Bao <tbao@google.com> | 2017-09-11 21:31:20 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-11 21:31:20 +0200 |
commit | cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f (patch) | |
tree | 4772bd421ff7161c68f92830d0e2287c0045b423 /wear_ui.cpp | |
parent | Merge "ui: Refactor the declaration orders." am: 79a23b30d2 (diff) | |
parent | Merge "ui: Remove text_top_." (diff) | |
download | android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar.gz android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar.bz2 android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar.lz android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar.xz android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.tar.zst android_bootable_recovery-cce9b2c96a3e1b8ed636c433a9fa5887890b2f1f.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) { |