Merge "screen_ui: stage marker positioning"

am: 16817312a6

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