Merge pull request #1382 from atomnuker/master

Skip interlaced modes during drm mode detection
master
emersion 6 years ago committed by GitHub
commit b20f4cd495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1133,6 +1133,12 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
wlr_log_errno(WLR_ERROR, "Allocation failed"); wlr_log_errno(WLR_ERROR, "Allocation failed");
continue; continue;
} }
if (mode->drm_mode.flags & DRM_MODE_FLAG_INTERLACE) {
free(mode);
continue;
}
mode->drm_mode = drm_conn->modes[i]; mode->drm_mode = drm_conn->modes[i];
mode->wlr_mode.width = mode->drm_mode.hdisplay; mode->wlr_mode.width = mode->drm_mode.hdisplay;
mode->wlr_mode.height = mode->drm_mode.vdisplay; mode->wlr_mode.height = mode->drm_mode.vdisplay;

Loading…
Cancel
Save