aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-09-08 23:25:32 -0500
committerTao Bao2017-09-09 01:31:31 -0500
commitcb5524c23a761e37e8326edb95c8d1b684af352a (patch)
tree9ae4117d2f29cf9f2db2ed8d5717075272233ca2 /wear_ui.cpp
parentfa4f0140637ea2d2c24e9d8739ab3a573fbd22fe (diff)
downloadplatform-bootable-recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.gz
platform-bootable-recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.tar.xz
platform-bootable-recovery-cb5524c23a761e37e8326edb95c8d1b684af352a.zip
ui: Remove text_top_.
After the cleanup to WearRecoveryUI, text_top_ now always equals to ((text_row_ + 1) % text_rows_). Test: Check the recovery UI and 'View recovery logs'. Change-Id: I69a7f377bbd990db2194f9d3efae257c323c06a8
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 1859b131..e2ee4880 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -133,7 +133,7 @@ void WearRecoveryUI::draw_screen_locked() {
133 // display from the bottom up, until we hit the top of the 133 // display from the bottom up, until we hit the top of the
134 // screen, the bottom of the menu, or we've displayed the 134 // screen, the bottom of the menu, or we've displayed the
135 // entire text buffer. 135 // entire text buffer.
136 int row = (text_top_ + text_rows_ - 1) % text_rows_; 136 int row = text_row_;
137 size_t count = 0; 137 size_t count = 0;
138 for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_; 138 for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_;
139 ty -= char_height_, ++count) { 139 ty -= char_height_, ++count) {