[Xfce4-commits] r29667 - in xfce4-settings/trunk: . dialogs/display-settings

Nick Schermer nick at xfce.org
Sun Mar 15 12:55:41 CET 2009


Author: nick
Date: 2009-03-15 11:55:41 +0000 (Sun, 15 Mar 2009)
New Revision: 29667

Modified:
   xfce4-settings/trunk/NEWS
   xfce4-settings/trunk/dialogs/display-settings/main.c
Log:
Select the correct refresh rate in the display dialog
on startup (bug #4966).


Modified: xfce4-settings/trunk/NEWS
===================================================================
--- xfce4-settings/trunk/NEWS	2009-03-15 11:34:48 UTC (rev 29666)
+++ xfce4-settings/trunk/NEWS	2009-03-15 11:55:41 UTC (rev 29667)
@@ -5,7 +5,7 @@
 - Make sure inputproto 1.4.2 is available before enabling device
   hotplugging in the code (bug #5084).
 - Remove unsigned clamp macro that broke applying the display settings
-  (bug #4966).
+  and select the correct refresh rate (bug #4966).
 
 4.6.0
 =====

Modified: xfce4-settings/trunk/dialogs/display-settings/main.c
===================================================================
--- xfce4-settings/trunk/dialogs/display-settings/main.c	2009-03-15 11:34:48 UTC (rev 29666)
+++ xfce4-settings/trunk/dialogs/display-settings/main.c	2009-03-15 11:55:41 UTC (rev 29667)
@@ -296,10 +296,10 @@
             /* get the active rate closest to the current diff */
             diff = ABS (rates[n] - XFCE_RANDR_LEGACY_RATE (xfce_randr_legacy));
 
-            /* store active*/
+            /* store active */
             if (active_diff > diff)
             {
-                active = n;
+                active = nrates - n - 1;
                 active_diff = diff;
             }
         }




More information about the Xfce4-commits mailing list