From c3d7295553b69575158417621024412b2935c9ec Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Tue, 26 Nov 2002 21:14:33 +0000 Subject: change way we pick a sane default mode --- installclass.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'installclass.py') 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) -- cgit