diff options
author | Mike Fulbright <msf@redhat.com> | 2002-11-26 21:14:33 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-11-26 21:14:33 +0000 |
commit | c3d7295553b69575158417621024412b2935c9ec (patch) | |
tree | 28857be6071615a82b04fcf49b6efbe98d97cb49 | |
parent | e506e8ef6e1d97285909c8ff23e502c910e9d7dd (diff) | |
download | anaconda-c3d7295553b69575158417621024412b2935c9ec.tar.gz anaconda-c3d7295553b69575158417621024412b2935c9ec.tar.xz anaconda-c3d7295553b69575158417621024412b2935c9ec.zip |
change way we pick a sane default mode
-rw-r--r-- | installclass.py | 19 |
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) |