summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-11-26 21:14:33 +0000
committerMike Fulbright <msf@redhat.com>2002-11-26 21:14:33 +0000
commitc3d7295553b69575158417621024412b2935c9ec (patch)
tree28857be6071615a82b04fcf49b6efbe98d97cb49 /installclass.py
parente506e8ef6e1d97285909c8ff23e502c910e9d7dd (diff)
downloadanaconda-c3d7295553b69575158417621024412b2935c9ec.tar.gz
anaconda-c3d7295553b69575158417621024412b2935c9ec.tar.xz
anaconda-c3d7295553b69575158417621024412b2935c9ec.zip
change way we pick a sane default mode
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/installclass.py b/installclass.py
index d1890192c..709c2d11c 100644
--- a/installclass.py
+++ b/installclass.py
@@ -428,23 +428,12 @@ class BaseInstallClass:
log(_("monitor specs on the xconfig ks directive if they were "))
log(_("not probed correctly."))
resolution = fbres
+
+ xcfg.set_resolution(resolution)
else:
- if len(availableDepths) == 1:
- depth = 8
- elif len(availableDepths) >= 2:
- depth = 16
+ # pick something sane
+ xcfg.choose_sane_default()
- xcfg.set_colordepth(depth)
- availableRes = xcfg.available_resolutions()
-
- if "1024x768" in availableRes:
- resolution = "1024x768"
- elif "800x600" in availableRes:
- resolution = "800x600"
- else:
- resolution = "640x480"
-
- xcfg.set_resolution(resolution)
xsetup = xsetup.XSetup(xcfg)
id.setXSetup(xsetup)