summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Song <songwalker@google.com>2017-09-29 23:19:23 +0200
committerLuke Song <songwalker@google.com>2017-09-29 23:19:23 +0200
commiteee1e7656f73aae7c6f7bd2997403c978ef3986e (patch)
tree7ee5d66447981b4e64fe9c1a8d97b4b88fe5042e
parentMerge "Add a new option in recovery menu to test the background texts" (diff)
downloadandroid_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar.gz
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar.bz2
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar.lz
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar.xz
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.tar.zst
android_bootable_recovery-eee1e7656f73aae7c6f7bd2997403c978ef3986e.zip
-rw-r--r--screen_ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index bc5c5c31f..166d7b4cf 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -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);