Merge "Updates Wear UI to Display Localized Recovery Text." am: 6bc9d605f3

am: 393a97ff8b

Change-Id: I1d51147f51130dd72c56421682a4a4dc2637212d
This commit is contained in:
Karl Shaffer
2018-07-20 13:37:56 -07:00
committed by android-build-merger
+7
View File
@@ -53,6 +53,13 @@ void WearRecoveryUI::draw_background_locked() {
int frame_x = (gr_fb_width() - frame_width) / 2; int frame_x = (gr_fb_width() - frame_width) / 2;
int frame_y = (gr_fb_height() - frame_height) / 2; int frame_y = (gr_fb_height() - frame_height) / 2;
gr_blit(frame, 0, 0, frame_width, frame_height, frame_x, frame_y); 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);
} }
} }