diff options
author | Mike Fulbright <msf@redhat.com> | 2000-08-23 18:55:30 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-08-23 18:55:30 +0000 |
commit | 9509b0656a5811cefa5620173b48ec15cd9a30a8 (patch) | |
tree | 9e99ccf58f8bab70847b0a022f96e3f91afe9023 | |
parent | f497b8a967403ce709cdd570e404de5fb9bd336d (diff) | |
download | anaconda-9509b0656a5811cefa5620173b48ec15cd9a30a8.tar.gz anaconda-9509b0656a5811cefa5620173b48ec15cd9a30a8.tar.xz anaconda-9509b0656a5811cefa5620173b48ec15cd9a30a8.zip |
handle case where no 16bpp modes are defined
-rw-r--r-- | xf86config.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xf86config.py b/xf86config.py index d94456877..41d591dab 100644 --- a/xf86config.py +++ b/xf86config.py @@ -1036,8 +1036,11 @@ Section "Screen" Device "%(devID)s" Monitor "%(monitorID)s" """ % tmp + + # see if 16 bpp is available, and if it should be the + # default depth if maxdepth > 0: - if maxdepth > 16: + if maxdepth > 16 and '16' in self.modes.keys() and self.modes['16']: screens = screens + " DefaultColorDepth 16\n" else: screens = screens + " DefaultColorDepth %d\n" % maxdepth @@ -1157,8 +1160,10 @@ Section "Screen" "emulate3" : emulate3, "videoRam" : "" } # self.vidCards[self.primary]["DRIVER"] = "vga" + # see if 16 bpp is available, and if it should be the + # default depth if maxdepth > 0: - if maxdepth > 16: + if maxdepth > 16 and '16' in self.modes.keys() and self.modes['16']: data["defaultDepth"] = "\n\tDefaultDepth\t16" else: data["defaultDepth"] = "\n\tDefaultDepth\t%d" % maxdepth |