From 9b3349a586ccad25d87bfc044363ac7cf02b945d Mon Sep 17 00:00:00 2001 From: Sean Rhodes <38053956+Sean-StarLabs@users.noreply.github.com> Date: Fri, 1 Oct 2021 11:36:11 +0100 Subject: [PATCH] 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 --- plugins/uefi-capsule/fu-plugin-uefi-capsule.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/uefi-capsule/fu-plugin-uefi-capsule.c b/plugins/uefi-capsule/fu-plugin-uefi-capsule.c index 4a10d54ff..0f7735ccc 100644 --- a/plugins/uefi-capsule/fu-plugin-uefi-capsule.c +++ b/plugins/uefi-capsule/fu-plugin-uefi-capsule.c @@ -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 +=