* Consider bit depth while sorting video modes.

master
Colin Watson 19 years ago
parent 239d5e493f
commit aa24abef86

1
debian/changelog vendored

@ -3,6 +3,7 @@ gfxboot-theme-ubuntu (0.1.6) UNRELEASED; urgency=low
* Remove timeout clock graphics, which seem to break on some machines and
were scary-looking anyway (closes: Ubuntu #21210).
* Add Galician translation (thanks, Pedro Silva; closes: Ubuntu #21806).
* Consider bit depth while sorting video modes.
-- Colin Watson <cjwatson@ubuntu.com> Wed, 11 Jan 2006 11:47:56 +0000

@ -17,14 +17,16 @@
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% Create sort key for video modes.
% Supports up to 8191x4095x56 in multiples of 8 bits of depth.
%
% ( vm_index ) ==> ( sort_index )
%
/vmsortindex {
video.modes.list exch get
dup
.vm_width get 16 shl
exch .vm_height get add
.vm_width get 14 shl
over .vm_height get add 3 shl
exch .vm_depth get 3 shr add
} def

Loading…
Cancel
Save