Skip to content

Commit

Permalink
Fix the resolution issue when boot Windows/WinPE in UEFI mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Feb 24, 2025
1 parent 96f1125 commit 022322c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion INSTALL/grub/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ function ventoy_debug_pause {
fi
}


function ventoy_max_resolution {
vt_enum_video_mode
vt_get_video_mode 0 vtCurMode
terminal_output console
set gfxmode=$vtCurMode
terminal_output gfxterm
}

function ventoy_cli_console {
if [ -z "$vtoy_display_mode" ]; then
terminal_output console
Expand Down Expand Up @@ -631,7 +640,7 @@ function uefi_windows_menu_func {
if [ -n "$vtoy_chain_mem_addr" ]; then
ventoy_acpi_param ${vtoy_chain_mem_addr} 2048
ventoy_cli_console
ventoy_max_resolution
chainloader ${vtoy_path}/ventoy_${VTOY_EFI_ARCH}.efi env_param=${env_param} isoefi=${LoadIsoEfiDriver} iso_${ventoy_fs_probe} ${vtdebug_flag} mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
boot
else
Expand Down

0 comments on commit 022322c

Please sign in to comment.