diff options
author | Francisco Jerez <currojerez@riseup.net> | 2009-08-11 20:30:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-12 20:33:37 -0400 |
commit | 841b4117b30d544690fceb952037b1cddf14783f (patch) | |
tree | 9c5eb19e0b21d26345e88e8b0fd1e3fd70da1534 /drivers | |
parent | b6b7902e54c7e8abbc213d8bdc290350c00ccfe5 (diff) |
drm: Fix drm_cvt_mode() for interlaced modes.
The calculated vdisplay was half the right value.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 6b4d2dc3cdd9..9e54925a7609 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -146,7 +146,7 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, | |||
146 | if (margins) | 146 | if (margins) |
147 | vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000; | 147 | vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000; |
148 | 148 | ||
149 | drm_mode->vdisplay = vdisplay_rnd + 2 * vmargin; | 149 | drm_mode->vdisplay = vdisplay + 2 * vmargin; |
150 | 150 | ||
151 | /* Interlaced */ | 151 | /* Interlaced */ |
152 | if (interlaced) | 152 | if (interlaced) |