Skip to content

Commit

Permalink
drm: Fix drm_cvt_mode() for interlaced modes.
Browse files Browse the repository at this point in the history
The calculated vdisplay was half the right value.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Francisco Jerez authored and Dave Airlie committed Aug 13, 2009
1 parent b6b7902 commit 841b411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
if (margins)
vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000;

drm_mode->vdisplay = vdisplay_rnd + 2 * vmargin;
drm_mode->vdisplay = vdisplay + 2 * vmargin;

/* Interlaced */
if (interlaced)
Expand Down

0 comments on commit 841b411

Please sign in to comment.