From 4ca721b1fe6022c985ab7b10d1bea36f657c28b3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Jan 2009 17:30:35 +0000 Subject: we do not handle multiple splash files (splashy) only propose a limited number of framebuffer modes (note that "video" menu is only used for syslinux, not grub) --- src/common.inc | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'src/common.inc') diff --git a/src/common.inc b/src/common.inc index cf6bc2e..adb0052 100644 --- a/src/common.inc +++ b/src/common.inc @@ -342,21 +342,6 @@ menu.texts menu.entry get "%s " bc.cmd sprintf } ifelse - syslinux { - /splash_file 32 string def - - video.modes.list xmenu.video .xm_current get get - dup .vm_mode get 0 ge { - dup .vm_height get exch .vm_width get - ",%04d%04d.spl" splash_file sprintf - } { pop } ifelse - - % check whether splash file exists - splash_file 1 add filesize .undef eq { - splash_file 0 0 put % empty string - } if - } if - xmenu.kernelopts { kernelopts.options xmenu.kernelopts .xm_current get get dup "" ne { "%s " bc.cmd dup length add sprintf @@ -367,41 +352,11 @@ cmdline.hidden { cmdline.hidden "" ne { - splash_file { - /bc.tmp cmdline.hidden length splash_file length add string def - cmdline.hidden "initrd=" bootopt.find dup .undef ne { - skipnonspaces - dup - dup 0 get over 0 0 put - splash_file cmdline.hidden "%s%s" bc.tmp sprintf - 0 exch put - "%s" bc.tmp dup length add sprintf - } { - pop - bc.tmp cmdline.hidden strcpy pop - } ifelse - - bc.tmp "%s " bc.cmd dup length add sprintf - - bc.tmp free /bc.tmp .undef def - } { cmdline.hidden "%s " bc.cmd dup length add sprintf - } ifelse } if } if - /splash_file xfree - syslinux { - video.modes.list xmenu.video .xm_current get get .vm_mode get - - dup 0 ge { - 0x200 add "vga=0x%x " bc.cmd dup length add sprintf - } { - -1 eq { - "textmode=1 " bc.cmd dup length add sprintf - } if - } ifelse config.lang { config.lang "en_US" ne { -- cgit v1.2.1