summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2016-01-29 09:45:51 -0800
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2016-02-01 23:04:48 +0000
commit1e3fe929dbb8c7104a50be5e013deec82922c609 (patch)
treefb9d4318540cc2efd45c604d26cccbf13ae3e9be
parentd8a6869bfedb39ac264ed7e1e2f6747ddcae059a (diff)
downloadvboot-1e3fe929dbb8c7104a50be5e013deec82922c609.tar.gz
vboot_display: Keep track of displayed screen
Vboot needs to track the currently displayed screen so when it needs to change the locale or display the debug overlay it knows which screen to redraw. Currently only the legacy path is doing this so change the new path to update the current screen if it is successfully drawn. BUG=chrome-os-partner:49766 BRANCH=glados TEST=boot on glados in dev mode, hit tab and ensure screen does not go black Change-Id: I4a2bf028275db57b2d0469fc1cb574e871820713 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Previous-Reviewed-on: https://chromium-review.googlesource.com/324549 (cherry picked from commit 00fa2601da5c3ec449dbeca19cc409a6777569fd) Reviewed-on: https://chromium-review.googlesource.com/325008
-rw-r--r--firmware/lib/vboot_display.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c
index 8dbf2f2b..f2978fb0 100644
--- a/firmware/lib/vboot_display.c
+++ b/firmware/lib/vboot_display.c
@@ -357,8 +357,14 @@ VbError_t VbDisplayScreen(VbCommonParams *cparams, uint32_t screen,
/* Read the locale last saved */
VbNvGet(vncptr, VBNV_LOCALIZATION_INDEX, &locale);
- if (gbb->bmpfv_size == 0)
- return VbExDisplayScreen(screen, locale);
+ if (gbb->bmpfv_size == 0) {
+ VbError_t ret = VbExDisplayScreen(screen, locale);
+
+ /* Keep track of the currently displayed screen */
+ if (ret == VBERROR_SUCCESS)
+ disp_current_screen = screen;
+ return ret;
+ }
return VbDisplayScreenLegacy(cparams, screen, force, vncptr, locale);
}