mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 11:07:37 +00:00
plugins/uefi-capsule: Force ux-capsule over full size bgrt (#3823)
If bgrt is the same size as the screen, show ux-capsule on top of bgrt. Signed-off-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
7acccd581c
commit
9b3349a586
@ -203,8 +203,12 @@ fu_plugin_uefi_capsule_write_splash_data(FuPlugin *plugin,
|
||||
header.image_type = 0;
|
||||
header.reserved = 0;
|
||||
header.x_offset = (screen_x / 2) - (width / 2);
|
||||
header.y_offset =
|
||||
fu_uefi_bgrt_get_yoffset(data->bgrt) + fu_uefi_bgrt_get_height(data->bgrt);
|
||||
if (screen_y == fu_uefi_bgrt_get_height(data->bgrt)) {
|
||||
header.y_offset = (gdouble)screen_y * 0.8f;
|
||||
} else {
|
||||
header.y_offset =
|
||||
fu_uefi_bgrt_get_yoffset(data->bgrt) + fu_uefi_bgrt_get_height(data->bgrt);
|
||||
};
|
||||
|
||||
/* header, payload and image has to add to zero */
|
||||
csum +=
|
||||
|
Loading…
Reference in New Issue
Block a user