From 7f3d93b55b5f19037ee7619583314c346667af89 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 14 Jun 2020 10:13:40 +0000 Subject: [PATCH] loader.efi: update console after gfx mode change The gfx mode change should be coordinated with console setup. --- stand/efi/loader/framebuffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stand/efi/loader/framebuffer.c b/stand/efi/loader/framebuffer.c index 3f7e5fcbabef..dce49c69ab0e 100644 --- a/stand/efi/loader/framebuffer.c +++ b/stand/efi/loader/framebuffer.c @@ -586,6 +586,7 @@ gop_autoresize(EFI_GRAPHICS_OUTPUT *gop) mode, EFI_ERROR_CODE(status)); return (CMD_ERROR); } + (void) efi_cons_update_mode(); } return (CMD_OK); } @@ -610,6 +611,7 @@ text_autoresize() } if (max_dim > 0) conout->SetMode(conout, best_mode); + (void) efi_cons_update_mode(); return (CMD_OK); } @@ -697,6 +699,7 @@ command_gop(int argc, char *argv[]) argv[0], mode, EFI_ERROR_CODE(status)); return (CMD_ERROR); } + (void) efi_cons_update_mode(); } else if (!strcmp(argv[1], "get")) { if (argc != 2) goto usage;