diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-03-08 23:17:28 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-03-08 23:17:28 +0100 |
commit | 77b6d1b7363d3ff28f063ed92c9ed47194f70b20 (patch) | |
tree | 86b777fdb0d3d9b87c2add0c23c9afdcde6881a3 /src/glamo-kms-output.c | |
parent | c9b0bd77ea232b8ccd6cdabf25b0686d83bcb3a4 (diff) |
Translate KMS pixel clock values -> X values
There's a factor of 1000 difference, which seems to confuse X
and prevent switching of resolution without general carnage.
Diffstat (limited to 'src/glamo-kms-output.c')
-rw-r--r-- | src/glamo-kms-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamo-kms-output.c b/src/glamo-kms-output.c index 7b9f997..1f67eb0 100644 --- a/src/glamo-kms-output.c +++ b/src/glamo-kms-output.c @@ -152,7 +152,7 @@ static DisplayModePtr get_modes(xf86OutputPtr output) if (!mode) continue; mode->type = 0; - mode->Clock = drm_mode->clock; + mode->Clock = drm_mode->clock / 1000.0; mode->HDisplay = drm_mode->hdisplay; mode->HSyncStart = drm_mode->hsync_start; mode->HSyncEnd = drm_mode->hsync_end; |