If hidden-timeout=2 is set in gfxboot.cfg, then only show access.pcx at

the bottom of the screen, not the logo as well, to alleviate problems
caused by aspect ratio distortion.  For awkward internal reasons this
currently requires a blank.pcx to exist that has the same dimensions as
splash.pcx but is just a blank screen of the appropriate colour.
master
Colin Watson 14 years ago
parent 435ba5b7ec
commit ddb4485253

@ -488,13 +488,25 @@
pop pop
} { pop } ifelse } { pop } ifelse
"hidden-timeout" getgfxconfig dup .undef ne { "hidden-timeout" getgfxconfig dup .undef ne {
% display just the main and access logos and wait for a keypress; if % If >= 1, display just the main and access logos and wait for a
% timeout expires, boot without showing the menu % keypress; if timeout expires, boot without showing the menu.
pop /timeout.hidden true def % If >= 2, as above, but don't display the splash image (hack for
% Ubuntu 10.04 LTS, so please don't rely on it permanently).
strtol
dup 1 ge { /timeout.hidden true def } if
2 ge { /timeout.hidden.showsplash false def } if
} { pop } ifelse } { pop } ifelse
menu.bar.color setcolor 0 0 moveto screen.size fillrect menu.bar.color setcolor 0 0 moveto screen.size fillrect
% Hack for Ubuntu 10.04 LTS. Should be replaced by better logo handling
% in general.
timeout.hidden.showsplash not {
/background.file.orig background.file def
"blank.pcx" findfile
/background.file over def setimage
} if
% Move the logo down 84 pixels to centre it. This is obviously a gross % Move the logo down 84 pixels to centre it. This is obviously a gross
% hack. To fix this, we need to move to smaller logo images which are % hack. To fix this, we need to move to smaller logo images which are
% positioned on the screen in code, rather than doing the positioning in % positioned on the screen in code, rather than doing the positioning in

5
debian/changelog vendored

@ -1,6 +1,11 @@
gfxboot-theme-ubuntu (0.9.9) UNRELEASED; urgency=low gfxboot-theme-ubuntu (0.9.9) UNRELEASED; urgency=low
* Update translations from Launchpad. * Update translations from Launchpad.
* If hidden-timeout=2 is set in gfxboot.cfg, then only show access.pcx at
the bottom of the screen, not the logo as well, to alleviate problems
caused by aspect ratio distortion. For awkward internal reasons this
currently requires a blank.pcx to exist that has the same dimensions as
splash.pcx but is just a blank screen of the appropriate colour.
-- Colin Watson <cjwatson@ubuntu.com> Mon, 19 Apr 2010 00:46:39 +0100 -- Colin Watson <cjwatson@ubuntu.com> Mon, 19 Apr 2010 00:46:39 +0100

@ -58,6 +58,7 @@
% %
/splash.input { /splash.input {
/timeout.hidden false def /timeout.hidden false def
/background.file background.file.orig def
0 0 moveto background.file setimage 0 0 image.size image 0 0 moveto background.file setimage 0 0 image.size image
window.done window.done
window.main window.main

@ -45,3 +45,4 @@
/timeout.y { head.y } def /timeout.y { head.y } def
/timeout.hidden false def /timeout.hidden false def
/timeout.hidden.showsplash true def

Loading…
Cancel
Save