summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorLuke Song <songwalker@google.com>2017-06-24 03:24:29 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-06-24 03:24:29 +0200
commit799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0 (patch)
treedf330d26e459aa0cf8b34a8c5f2442cf3739b7cc /screen_ui.cpp
parentMerge changes Icb6f7466,Ibf6238c9 am: eef231567c (diff)
parentMerge "Restructure vr_ui" (diff)
downloadandroid_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar.gz
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar.bz2
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar.lz
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar.xz
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.tar.zst
android_bootable_recovery-799cd0bb5d5b5ea88d1c66c5fddb159edd8308c0.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index d21a64890..c41bb22e1 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -336,7 +336,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);
@@ -459,7 +459,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;
}