summaryrefslogtreecommitdiff
path: root/src/boot/efi/graphics.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-02-25 15:56:54 +0100
committerKay Sievers <kay@vrfy.org>2015-02-26 01:03:29 +0100
commita19b0678be6f105d1bb1aae151fcb907ea6e832a (patch)
tree1576fcbb2eb3f2084993616446fdc62d29a2f2d6 /src/boot/efi/graphics.c
parent036a4773ffa1152e4cabd27473450b8cc01e019b (diff)
boot: efi - remove default boot splash handling
Diffstat (limited to 'src/boot/efi/graphics.c')
-rw-r--r--src/boot/efi/graphics.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/boot/efi/graphics.c b/src/boot/efi/graphics.c
index 11305b8d06..9fbcbc10ba 100644
--- a/src/boot/efi/graphics.c
+++ b/src/boot/efi/graphics.c
@@ -321,12 +321,9 @@ EFI_STATUS bmp_to_blt(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf,
return EFI_SUCCESS;
}
-EFI_STATUS graphics_splash(EFI_FILE *root_dir, CHAR16 *path,
- const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background) {
+EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background) {
EFI_GUID GraphicsOutputProtocolGuid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput = NULL;
- UINT8 *content;
- INTN len;
struct bmp_dib *dib;
struct bmp_map *map;
UINT8 *pixmap;
@@ -340,10 +337,6 @@ EFI_STATUS graphics_splash(EFI_FILE *root_dir, CHAR16 *path,
if (EFI_ERROR(err))
return err;
- len = file_read(root_dir, path, 0, 0, &content);
- if (len < 0)
- return EFI_LOAD_ERROR;
-
err = bmp_parse_header(content, len, &dib, &map, &pixmap);
if (EFI_ERROR(err))
goto err;
@@ -384,6 +377,5 @@ EFI_STATUS graphics_splash(EFI_FILE *root_dir, CHAR16 *path,
dib->x, dib->y, 0);
err:
FreePool(blt);
- FreePool(content);
return err;
}