diff options
author | Karl Shaffer <karlshaffer@google.com> | 2018-07-20 22:46:37 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-20 22:46:37 +0200 |
commit | 5f6869ad206c9896de7fec0c7a0781f5475ae19c (patch) | |
tree | 4593c7d852eeeceb8aa676efe013fa141676e711 | |
parent | [automerger skipped] Make recovery libraries shared / recovery_available am: c936a69619 am: 3e8262d633 (diff) | |
parent | Merge "Updates Wear UI to Display Localized Recovery Text." am: 6bc9d605f3 am: 393a97ff8b (diff) | |
download | android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar.gz android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar.bz2 android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar.lz android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar.xz android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.tar.zst android_bootable_recovery-5f6869ad206c9896de7fec0c7a0781f5475ae19c.zip |
Diffstat (limited to '')
-rw-r--r-- | wear_ui.cpp | 7 |
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); } } |