diff options
-rw-r--r-- | firmware/lib/include/vboot_display.h | 4 | ||||
-rw-r--r-- | firmware/lib/vboot_display.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/lib/include/vboot_display.h b/firmware/lib/include/vboot_display.h index 52730b9e..17ce48b8 100644 --- a/firmware/lib/include/vboot_display.h +++ b/firmware/lib/include/vboot_display.h @@ -34,7 +34,7 @@ ImageInfo *VbFindFontGlyph(VbFont_t *font, uint32_t ascii, /** * Try to display the specified text at a particular position. */ -void VbRenderTextAtPos(char *text, int right_to_left, +void VbRenderTextAtPos(const char *text, int right_to_left, uint32_t x, uint32_t y, VbFont_t *font); /** @@ -45,7 +45,7 @@ const char *RecoveryReasonString(uint8_t code); /** * Return a fixed string representing the HWID. */ -char *VbHWID(VbCommonParams *cparams); +const char *VbHWID(VbCommonParams *cparams); /** * Get the number of localizations in the GBB bitmap data. diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c index 7c916d01..9abc51d9 100644 --- a/firmware/lib/vboot_display.c +++ b/firmware/lib/vboot_display.c @@ -46,7 +46,7 @@ VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count) return VBERROR_SUCCESS; } -char *VbHWID(VbCommonParams *cparams) +const char *VbHWID(VbCommonParams *cparams) { GoogleBinaryBlockHeader *gbb = (GoogleBinaryBlockHeader *)cparams->gbb_data; @@ -120,7 +120,7 @@ ImageInfo *VbFindFontGlyph(VbFont_t *font, uint32_t ascii, return &(entry->info); } -void VbRenderTextAtPos(char *text, int right_to_left, +void VbRenderTextAtPos(const char *text, int right_to_left, uint32_t x, uint32_t y, VbFont_t *font) { int i; @@ -182,7 +182,7 @@ VbError_t VbDisplayScreenFromGBB(VbCommonParams *cparams, uint32_t screen, uint32_t offset; uint32_t i; VbFont_t *font; - char *text_to_show; + const char *text_to_show; int rtol = 0; char outbuf[OUTBUF_LEN] = ""; uint32_t used = 0; |