only enable DRM_CLIENT_CAP_ASPECT_RATIO cap if it's available in the drm headers
* not available on stretch so it broke building
This commit is contained in:
parent
cb39159516
commit
52b98ed5d7
1 changed files with 3 additions and 1 deletions
|
@ -417,8 +417,10 @@ KMSDRM_VideoInit(_THIS)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Expose aspect ratio flags to userspace */
|
||||
#ifdef DRM_CLIENT_CAP_ASPECT_RATIO
|
||||
/* Expose aspect ratio flags to userspace if available */
|
||||
KMSDRM_drmSetClientCap(vdata->drm_fd, DRM_CLIENT_CAP_ASPECT_RATIO, 1);
|
||||
#endif
|
||||
|
||||
/* Find the first available connector with modes */
|
||||
resources = KMSDRM_drmModeGetResources(vdata->drm_fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue