summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorDamien Bargiacchi <drb@google.com>2016-08-12 00:57:03 +0200
committerTao Bao <tbao@google.com>2016-11-15 23:24:06 +0100
commitd5d34d70a5d9c24e214855bb7e1e5402a96ec7cc (patch)
treeba64c8d10f3aa0bea8ee263a33db8a4bfab4420e /screen_ui.cpp
parentMerge "Add .clang-format style file." (diff)
downloadandroid_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar.gz
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar.bz2
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar.lz
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar.xz
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.tar.zst
android_bootable_recovery-d5d34d70a5d9c24e214855bb7e1e5402a96ec7cc.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index c61727258..fab348964 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -248,7 +248,7 @@ void ScreenRecoveryUI::DrawHorizontalRule(int* y) {
}
void ScreenRecoveryUI::DrawTextLine(int x, int* y, const char* line, bool bold) {
- gr_text(x, *y, line, bold);
+ gr_text(gr_sys_font(), x, *y, line, bold);
*y += char_height_ + 4;
}
@@ -304,10 +304,10 @@ void ScreenRecoveryUI::draw_screen_locked() {
gr_fill(0, y - 2, gr_fb_width(), y + char_height_ + 2);
// Bold white text for the selected item.
SetColor(MENU_SEL_FG);
- gr_text(4, y, menu_[i], true);
+ gr_text(gr_sys_font(), 4, y, menu_[i], true);
SetColor(MENU);
} else {
- gr_text(4, y, menu_[i], false);
+ gr_text(gr_sys_font(), 4, y, menu_[i], false);
}
y += char_height_ + 4;
}
@@ -323,7 +323,7 @@ void ScreenRecoveryUI::draw_screen_locked() {
for (int ty = gr_fb_height() - char_height_;
ty >= y && count < text_rows_;
ty -= char_height_, ++count) {
- gr_text(0, ty, text_[row], false);
+ gr_text(gr_sys_font(), 0, ty, text_[row], false);
--row;
if (row < 0) row = text_rows_ - 1;
}
@@ -442,7 +442,7 @@ void ScreenRecoveryUI::Init() {
density_ = static_cast<float>(android::base::GetIntProperty("ro.sf.lcd_density", 160)) / 160.f;
is_large_ = gr_fb_height() > PixelsFromDp(800);
- gr_font_size(&char_width_, &char_height_);
+ gr_font_size(gr_sys_font(), &char_width_, &char_height_);
text_rows_ = gr_fb_height() / char_height_;
text_cols_ = gr_fb_width() / char_width_;