summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-01-18 22:09:13 +0000
committerMike Fulbright <msf@redhat.com>2002-01-18 22:09:13 +0000
commit0d2a5cd0bbdacd0a9b99e040c9b32b62fd7cb313 (patch)
tree472363d563b5d3e32aef8daa6395887ab6491f74 /xf86config.py
parentaea9cd519dd92db89676861b397e42c8b6f5a9c8 (diff)
downloadanaconda-0d2a5cd0bbdacd0a9b99e040c9b32b62fd7cb313.tar.gz
anaconda-0d2a5cd0bbdacd0a9b99e040c9b32b62fd7cb313.tar.xz
anaconda-0d2a5cd0bbdacd0a9b99e040c9b32b62fd7cb313.zip
output all modes equal or smaller than selected
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/xf86config.py b/xf86config.py
index c8ed923d0..581a64786 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -1194,11 +1194,16 @@ Section "Screen"
Subsection "Display"
Depth %s
Modes """ % depth
-
+
+ # put in all modes up to selected mode
+ tmpmodes = self.availableModes()[depth]
+ tmpmodes.reverse()
+
modes = xmodes[depth]
modes.sort (self.areaCompare)
- for res in modes:
- screens = screens + '"' + res + '" '
+ for res in tmpmodes:
+ if self.areaCompare(res, modes[0]) > -1:
+ screens = screens + '"' + res + '" '
screens = screens + """
EndSubsection
"""