diff options
author | Luke Song <songwalker@google.com> | 2017-06-23 23:33:46 +0200 |
---|---|---|
committer | Luke Song <songwalker@google.com> | 2017-07-07 01:49:27 +0200 |
commit | c392888df752479ffaeee2fa9e624d71ce2a4618 (patch) | |
tree | 8067b3064960d84569f6c88e4f2b0b24a7bc5e51 /screen_ui.cpp | |
parent | Introduce VR recovery ui (diff) | |
download | android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar.gz android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar.bz2 android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar.lz android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar.xz android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.tar.zst android_bootable_recovery-c392888df752479ffaeee2fa9e624d71ce2a4618.zip |
Diffstat (limited to '')
-rw-r--r-- | screen_ui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index ff51b53e1..a7d9c9f4b 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -338,7 +338,7 @@ void ScreenRecoveryUI::draw_screen_locked() { SetColor(LOG); int row = (text_top_ + text_rows_ - 1) % text_rows_; size_t count = 0; - for (int ty = gr_fb_height() - kMarginHeight - char_height_ - log_bottom_offset_; + for (int ty = gr_fb_height() - kMarginHeight - char_height_; ty >= y && count < text_rows_; ty -= char_height_, ++count) { int temp_y = ty; DrawTextLine(x, &temp_y, text_[row], false); @@ -461,7 +461,6 @@ bool ScreenRecoveryUI::InitTextParams() { gr_font_size(gr_sys_font(), &char_width_, &char_height_); text_rows_ = (gr_fb_height() - kMarginHeight * 2) / char_height_; text_cols_ = (gr_fb_width() - kMarginWidth * 2) / char_width_; - log_bottom_offset_ = 0; return true; } |