xserver: Branch 'server-1.5-branch'
Adam Jackson
ajax at kemper.freedesktop.org
Tue Jul 15 07:43:48 PDT 2008
hw/xfree86/common/xf86RandR.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 2b3faf2a75a1acc3b799a2868c55736c94a8183f
Author: Julien Cristau <jcristau at debian.org>
Date: Tue Jul 15 10:36:38 2008 -0400
Bug #16674: Make sure RANDR reports refresh as 0 if pixel clock is 0.
(cherry picked from commit 9111944b292355f7478b4ae75bead8dc25edbbcb)
diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c
index 4ee0d8b..a55b93d 100644
--- a/hw/xfree86/common/xf86RandR.c
+++ b/hw/xfree86/common/xf86RandR.c
@@ -54,6 +54,8 @@ xf86RandRModeRefresh (DisplayModePtr mode)
{
if (mode->VRefresh)
return (int) (mode->VRefresh + 0.5);
+ else if (mode->Clock == 0)
+ return 0;
else
return (int) (mode->Clock * 1000.0 / mode->HTotal / mode->VTotal + 0.5);
}
More information about the xorg-commit
mailing list