summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-09-11 21:36:21 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-09-11 21:36:21 +0200
commit28459ffde38855c2792594316a4217f02a9ea827 (patch)
tree52115f2b5d3320b242a6923003b9e97864a64fc3 /wear_ui.cpp
parentMerge "ui: Refactor the declaration orders." am: 79a23b30d2 am: cb94b611cf (diff)
parentMerge "ui: Remove text_top_." am: 568644197f (diff)
downloadandroid_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar.gz
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar.bz2
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar.lz
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar.xz
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.tar.zst
android_bootable_recovery-28459ffde38855c2792594316a4217f02a9ea827.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) {