mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
backend/drm: make drmModePlane arg in add_plane const
Make it clearer it'll be free'd after add_plane returns.
This commit is contained in:
parent
c011a0e2ed
commit
a7a230ebef
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ bool check_drm_features(struct wlr_drm_backend *drm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool add_plane(struct wlr_drm_backend *drm,
|
static bool add_plane(struct wlr_drm_backend *drm,
|
||||||
struct wlr_drm_crtc *crtc, drmModePlane *drm_plane,
|
struct wlr_drm_crtc *crtc, const drmModePlane *drm_plane,
|
||||||
uint32_t type, union wlr_drm_plane_props *props) {
|
uint32_t type, union wlr_drm_plane_props *props) {
|
||||||
assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary));
|
assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary));
|
||||||
assert(!(type == DRM_PLANE_TYPE_CURSOR && crtc->cursor));
|
assert(!(type == DRM_PLANE_TYPE_CURSOR && crtc->cursor));
|
||||||
|
|
Loading…
Reference in a new issue