[Xfce4-commits] <xfce4-settings:master> Fix display rate matching.
Nick Schermer
noreply at xfce.org
Sun Apr 1 16:04:01 CEST 2012
Updating branch refs/heads/master
to cd0b1a0d839ea9ba7ade6f31e2b1ca221e854b1a (commit)
from f6c5238bb79fe0b7121f3fd225e504c80a50c815 (commit)
commit cd0b1a0d839ea9ba7ade6f31e2b1ca221e854b1a
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date: Sun Apr 1 16:02:56 2012 +0200
Fix display rate matching.
xfsettingsd/displays.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 0728b91..ee0a4d9 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -616,10 +616,10 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
continue;
/* calculate the refresh rate */
- rate = rint ((gdouble) mode_info->dotClock / ((gdouble) mode_info->hTotal * (gdouble) mode_info->vTotal));
+ rate = (gdouble) mode_info->dotClock / ((gdouble) mode_info->hTotal * (gdouble) mode_info->vTotal);
/* find the mode corresponding to the saved values */
- if (((int) rate == (int) output_rate)
+ if (rint (rate) == rint (output_rate)
&& (g_strcmp0 (mode_info->name, str_value) == 0))
{
pending->mode = mode_info->id;
More information about the Xfce4-commits
mailing list