* Remove duplicates from video mode list (closes: Ubuntu #21578).

master
Colin Watson 18 years ago
parent 2ab05b4dcb
commit 92f4f584de

1
debian/changelog vendored

@ -4,6 +4,7 @@ gfxboot-theme-ubuntu (0.1.6) UNRELEASED; urgency=low
were scary-looking anyway (closes: Ubuntu #21210).
* Add Galician translation (thanks, Pedro Silva; closes: Ubuntu #21806).
* Consider bit depth while sorting video modes.
* Remove duplicates from video mode list (closes: Ubuntu #21578).
-- Colin Watson <cjwatson@ubuntu.com> Wed, 11 Jan 2006 11:47:56 +0000

@ -89,6 +89,26 @@
} for
} if
% uniquify video.modes.list
video.modes.list length 1 gt {
/video.modes.list [
video.modes.list 0 get
1 1 video.modes.list length 1 sub {
video.modes.list over 1 sub get
video.modes.list 2 index get
over .vm_width get over .vm_width get ne
2 index .vm_height get 2 index .vm_height get ne or
rot .vm_depth get rot .vm_depth get ne or {
video.modes.list exch get
} {
pop
} ifelse
} for
] def
} if
% create mode strings
/video.modes.text [

Loading…
Cancel
Save