Merge "screen_ui: stage marker positioning" am: 16817312a6
am: c6e12b5f43
Change-Id: Ife75bb7a33a1ebd7f32369fcd8b349876c8e2532
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ void ScreenRecoveryUI::draw_background_locked() {
|
|||||||
int stage_height = gr_get_height(stageMarkerEmpty);
|
int stage_height = gr_get_height(stageMarkerEmpty);
|
||||||
int stage_width = gr_get_width(stageMarkerEmpty);
|
int stage_width = gr_get_width(stageMarkerEmpty);
|
||||||
int x = (gr_fb_width() - max_stage * gr_get_width(stageMarkerEmpty)) / 2;
|
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) {
|
for (int i = 0; i < max_stage; ++i) {
|
||||||
GRSurface* stage_surface = (i < stage) ? stageMarkerFill : stageMarkerEmpty;
|
GRSurface* stage_surface = (i < stage) ? stageMarkerFill : stageMarkerEmpty;
|
||||||
gr_blit(stage_surface, 0, 0, stage_width, stage_height, x, y);
|
gr_blit(stage_surface, 0, 0, stage_width, stage_height, x, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user