aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-21 20:48:56 +0100
committerGitHub <noreply@github.com>2018-11-21 20:48:56 +0100
commitb20f4cd49526acfc83e4860114d89075d0295828 (patch)
treea587a014345074fa0f4b67403f7dc655e988740e /backend
parent040d62de0076a349612b7c2c28c5dc5e93bb9760 (diff)
parentdc9fdd638574c201c13ce971d6d7149ada6eb94a (diff)
Merge pull request #1382 from atomnuker/master
Skip interlaced modes during drm mode detection
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 9fd5c6a3..eb3a71c0 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1133,6 +1133,12 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
wlr_log_errno(WLR_ERROR, "Allocation failed");
continue;
}
+
+ if (mode->drm_mode.flags & DRM_MODE_FLAG_INTERLACE) {
+ free(mode);
+ continue;
+ }
+
mode->drm_mode = drm_conn->modes[i];
mode->wlr_mode.width = mode->drm_mode.hdisplay;
mode->wlr_mode.height = mode->drm_mode.vdisplay;