Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 841b4117 authored by Francisco Jerez's avatar Francisco Jerez Committed by Dave Airlie
Browse files

drm: Fix drm_cvt_mode() for interlaced modes.



The calculated vdisplay was half the right value.

Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent b6b7902e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)