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

am: d3f4501676

Change-Id: Ic27ce0eab3410e82878419a2c5e10fbb3ecd1510
This commit is contained in:
Luke Song
2017-10-03 23:30:20 +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);