summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorKarl Shaffer <karlshaffer@google.com>2018-07-19 20:58:54 +0200
committerTao Bao <tbao@google.com>2018-07-20 20:31:53 +0200
commit633c01baca2c156855bdffa096899c43d484939a (patch)
treef0afc626b82e1102eacc4ec30e77dd178830503e /wear_ui.cpp
parentMerge "Fix the arguments passed to getopt_long(3)." (diff)
downloadandroid_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar.gz
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar.bz2
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar.lz
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar.xz
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.tar.zst
android_bootable_recovery-633c01baca2c156855bdffa096899c43d484939a.zip
Diffstat (limited to '')
-rw-r--r--wear_ui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 65c4aeed6..f50823688 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -53,6 +53,13 @@ void WearRecoveryUI::draw_background_locked() {
int frame_x = (gr_fb_width() - frame_width) / 2;
int frame_y = (gr_fb_height() - frame_height) / 2;
gr_blit(frame, 0, 0, frame_width, frame_height, frame_x, frame_y);
+
+ // Draw recovery text on screen above progress bar.
+ GRSurface* text = GetCurrentText();
+ int text_x = (ScreenWidth() - gr_get_width(text)) / 2;
+ int text_y = GetProgressBaseline() - gr_get_height(text) - 10;
+ gr_color(255, 255, 255, 255);
+ gr_texticon(text_x, text_y, text);
}
}