diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-28 22:56:18 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-28 16:59:21 -0400 |
commit | 55ac7e335aa0ec2c77980fcbc8509a4e71880dcc (patch) | |
tree | 08a1e565c05ab1d74d0992e61ab49bddbc15d5d6 /backend | |
parent | c55f70c8b7222cfaa33fc9634250027a95c1b066 (diff) |
backend/drm: fix wrong type for get_cursor_format return values
These are bools but should be pointers.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 998c2074..ed301b25 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -944,11 +944,11 @@ static const struct wlr_drm_format_set *drm_connector_get_cursor_formats( } struct wlr_drm_connector *conn = get_drm_connector_from_output(output); if (!conn->crtc) { - return false; + return NULL; } struct wlr_drm_plane *plane = conn->crtc->cursor; if (!plane) { - return false; + return NULL; } if (conn->backend->parent) { return &conn->backend->mgpu_formats; |