Merge "screen_ui: stage marker positioning" am: 16817312a6

am: c6e12b5f43

Change-Id: Ife75bb7a33a1ebd7f32369fcd8b349876c8e2532
This commit is contained in:
Luke Song
2017-10-03 23:21:52 +00:00
committed by android-build-merger
+1 -1
View File
@@ -165,7 +165,7 @@ void ScreenRecoveryUI::draw_background_locked() {
int stage_height = gr_get_height(stageMarkerEmpty);
int stage_width = gr_get_width(stageMarkerEmpty);
int x = (gr_fb_width() - max_stage * gr_get_width(stageMarkerEmpty)) / 2;
int y = gr_fb_height() - stage_height;
int y = gr_fb_height() - stage_height - kMarginHeight;
for (int i = 0; i < max_stage; ++i) {
GRSurface* stage_surface = (i < stage) ? stageMarkerFill : stageMarkerEmpty;
gr_blit(stage_surface, 0, 0, stage_width, stage_height, x, y);