From 990eaf662f9faa7997c8a4c9aa4f00cc2aafebbf Mon Sep 17 00:00:00 2001 From: paravoid Date: Sat, 2 Jul 2022 17:25:15 +0300 Subject: [PATCH] screenshot: Add FB Size info --- efigop/screenshot/efiboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/efigop/screenshot/efiboot.c b/efigop/screenshot/efiboot.c index 04a584b..ebd0977 100644 --- a/efigop/screenshot/efiboot.c +++ b/efigop/screenshot/efiboot.c @@ -1055,7 +1055,8 @@ Xgop_efi(void) } printf("\n"); } - printf("Current Mode = %d\n", gop->Mode->Mode); + gopi = gop->Mode->Info; + printf("Current Mode = %d\nSize: %d\nExpected Size: %d\n", gop->Mode->Mode, gop->Mode->FrameBufferSize, gopi->VerticalResolution * gopi->PixelsPerScanLine * 4); return (0); } -- 2.45.2