Commit f05c35a9 authored by Shelley Chen's avatar Shelley Chen Committed by chrome-bot
Browse files

detachables: Add recovery instructions



Currently, it's unclear to the user what to do in the
recovery menu (insert usb stick).  Add original
instruction bitmap so that it's clear.  Will
look into adding image into another CL as it needs
more tweaking of placement and size.

BUG=b:64399770
BRANCH=None
TEST=dut-control power_state:rec and make sure instructions appear.

Change-Id: Iafa091955c7878888db0289d32d9a2b83cda3e56
Signed-off-by: default avatarShelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/615189

Reviewed-by: default avatarRandall Spangler <rspangler@chromium.org>
Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
parent 8d3cfc6d
......@@ -679,8 +679,14 @@ static VbError_t vboot_draw_recovery_insert(struct params *p)
static VbError_t vboot_draw_recovery_menu(struct params *p)
{
if (p->redraw_base)
const int32_t h = VB_DEVICE_HEIGHT;
if (p->redraw_base) {
RETURN_ON_ERROR(vboot_draw_base_screen(p));
RETURN_ON_ERROR(draw_image_locale("insert.bmp", p->locale,
VB_SCALE_HALF, VB_SCALE_HALF - h/2,
VB_SIZE_AUTO, VB_TEXT_HEIGHT,
PIVOT_H_CENTER|PIVOT_V_BOTTOM));
}
const struct menu m = { rec_menu_files, ARRAY_SIZE(rec_menu_files) };
return vboot_draw_menu(p, &m);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment