[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/guidance/0.7
From:       Simon Edwards <simon () simonzone ! com>
Date:       2007-02-28 22:06:01
Message-ID: 1172700361.431955.20446.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 638123 by sedwards:

BUG: Stopped displayconfig from stacktracing when it encounters a degenerate
  gfx card + monitor combination that has no valid resolutions.



 M  +2 -1      ChangeLog  
 M  +6 -0      displayconfig/displayconfigabstraction.py  


--- branches/guidance/0.7/ChangeLog #638122:638123
@@ -34,8 +34,9 @@
   standand aspect ratio.
 - BUG: Displayconfig would sometimes fail to set Display virtual size in
   xorg.conf.
+- BUG: Stopped displayconfig from stacktracing when it encounters a degenerate
+  gfx card + monitor combination that has no valid resolutions.
 
-
 * Thursday 12 October 2006 Simon Edwards <simon@simonzone.com>
 - version 0.7
 - BUG: Don't bail out of laptop-detect is not there (Malone bug #60309)
--- branches/guidance/0.7/displayconfig/displayconfigabstraction.py #638122:638123
@@ -1703,6 +1703,12 @@
         
         self.available_sizes.sort()
         
+        if len(self.available_sizes)==0:
+            # No sizes, panic! do something!
+            monitor_model = GetMonitorModelDB().getMonitorByName("800x600 @ 60 Hz")
+            mode_list = GetMonitorModeDB().getAvailableModes(monitor_model,ModeLine.ASPECT_4_3)
+            self.available_sizes = mode_list[0]
+        
     def _getColorDepth(self):
         if self.gfx_card.getGfxCardModel().getNeedVideoRam():
             # If this card has limited memory then we fall back to 16bit colour.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic