diff options
author | Shelley Chen <shchen@chromium.org> | 2017-02-09 19:52:16 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-27 12:03:18 -0800 |
commit | 5c4c4678e7127e5153b571e1a2ec55caa2df7146 (patch) | |
tree | 5942d6f90653c2ad58c511685e883d337d437572 | |
parent | 7c5d3b22407ee08f09bb4cc388f96d87f9b6a0d2 (diff) | |
download | vboot-5c4c4678e7127e5153b571e1a2ec55caa2df7146.tar.gz |
poppy: add highlight param to VbExDisplayText()
BUG=chrome-os-partner:61275
BRANCH=None
TEST=None
CQ-DEPEND=CL:442747,CL:442690
Change-Id: I0730b64a1f8bf1f4aeca1be5ee87724d61818b23
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/442689
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | firmware/include/vboot_api.h | 10 | ||||
-rw-r--r-- | firmware/stub/vboot_api_stub.c | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index 74605a9a..b5c98155 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -795,10 +795,16 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y, void *buffer, uint32_t buffersize); /** - * Display a string at coordinate x,y + * Display a string beginning at coordinate x,y. + * + * The highlight option will display the string in a contrasting color to + * the normal colors. For example, the normal display colors are white + * background, black foreground. If highlight==1, will display with black + * background, white foreground. */ VbError_t VbExDisplayText(uint32_t x, uint32_t y, - const char *info_str); + const char *info_str, + int highlight); /** * Display a string containing debug information on the screen, rendered in a diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c index 1e8ff563..f1a50ce4 100644 --- a/firmware/stub/vboot_api_stub.c +++ b/firmware/stub/vboot_api_stub.c @@ -53,7 +53,8 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y, } VbError_t VbExDisplayText(uint32_t x, uint32_t y, - const char *info_str) + const char *info_str, + int highlight) { return VBERROR_SUCCESS; } |