Browse Source

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 12 years ago
parent
commit
ddb4485253
  1. 18
      common.inc
  2. 5
      debian/changelog
  3. 1
      splash.inc
  4. 1
      timeout.inc

18
common.inc

@ -488,13 +488,25 @@
pop
} { pop } ifelse
"hidden-timeout" getgfxconfig dup .undef ne {
% display just the main and access logos and wait for a keypress; if
% timeout expires, boot without showing the menu
pop /timeout.hidden true def
% If >= 1, display just the main and access logos and wait for a
% keypress; if timeout expires, boot without showing the menu.
% 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
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
% 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

5
debian/changelog

@ -1,6 +1,11 @@
gfxboot-theme-ubuntu (0.9.9) UNRELEASED; urgency=low
* 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

1
splash.inc

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

1
timeout.inc

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