summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-01-21 21:01:21 +0000
committerMike Fulbright <msf@redhat.com>2002-01-21 21:01:21 +0000
commita0908acbe832d7f76be25fe3fdd1288f25464d36 (patch)
treec4ab0ec21bb81d7a610dcc98a925f19d5cb9a3af /xf86config.py
parent05209b79f463f3a12f01e251401791f445983409 (diff)
downloadanaconda-a0908acbe832d7f76be25fe3fdd1288f25464d36.tar.gz
anaconda-a0908acbe832d7f76be25fe3fdd1288f25464d36.tar.xz
anaconda-a0908acbe832d7f76be25fe3fdd1288f25464d36.zip
handle framebuffer and vga16 casesbefore.bootloader.merge
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/xf86config.py b/xf86config.py
index 581a64786..da1f41b25 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -982,7 +982,7 @@ class XF86Config:
# restore manualmodes
self.manualModes = manmodes
serverPath = "/usr/X11R6/bin/" + servername
-
+
serverpid = os.fork()
if (not serverpid):
@@ -1196,8 +1196,15 @@ Section "Screen"
Modes """ % depth
# put in all modes up to selected mode
- tmpmodes = self.availableModes()[depth]
- tmpmodes.reverse()
+ availmodes = self.availableModes()
+ if depth in availmodes.keys():
+ tmpmodes = availmodes[depth]
+ tmpmodes.reverse()
+ else:
+ tmpmodes = []
+ for d in xmodes.keys():
+ for r in xmodes[d]:
+ tmpmodes.append(r)
modes = xmodes[depth]
modes.sort (self.areaCompare)