X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/7fe4762faa1b10bfcbb888930159ae76b60ac94a..e988c0dfe2f05c06ec2e2771589a33f05c89a044:/INSTALL/grub/grub.cfg diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index c198879..0ceaae4 100644 --- a/INSTALL/grub/grub.cfg +++ b/INSTALL/grub/grub.cfg @@ -19,7 +19,6 @@ if [ "$grub_platform" = "pc" ]; then insmod setkey insmod regexp - insmod video_fb fi function ventoy_pause { @@ -120,7 +119,7 @@ function ventoy_show_help { } function ventoy_load_menu_lang_file { - vt_load_file_to_mem "auto" $vtoy_efi_part/grub/menu.tar.gz vtoy_menu_lang_mem + vt_load_file_to_mem "auto" $prefix/menu.tar.gz vtoy_menu_lang_mem loopback vt_menu_tarfs mem:${vtoy_menu_lang_mem_addr}:size:${vtoy_menu_lang_mem_size} } @@ -2387,7 +2386,7 @@ function mimg_common_menuentry { ############################################################# ############################################################# -set VENTOY_VERSION="1.0.86" +set VENTOY_VERSION="1.0.87" #ACPI not compatible with Window7/8, so disable by default set VTOY_PARAM_NO_ACPI=1 @@ -2546,9 +2545,18 @@ elif [ "$vtoy_display_mode" = "serial_console" ]; then terminal_input serial console terminal_output serial console else - if [ "$vtoy_res_fit" = "1" ]; then + if [ "$vtoy_gfxmode" = "max" ]; then + set gfxmode=1024x768 terminal_output gfxterm - fi + + vt_enum_video_mode + vt_get_video_mode 0 vtCurMode + terminal_output console + set gfxmode=$vtCurMode + terminal_output gfxterm + elif [ "$vtoy_res_fit" = "1" ]; then + terminal_output gfxterm + fi if [ -n "$vtoy_theme" ]; then vt_set_theme