backend/drm: fix wrong type for get_cursor_format return values

These are bools but should be pointers.
This commit is contained in:
Simon Ser 2021-07-28 22:56:18 +02:00 committed by Simon Zeni
parent c55f70c8b7
commit 55ac7e335a
1 changed files with 2 additions and 2 deletions

View File

@ -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); struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
if (!conn->crtc) { if (!conn->crtc) {
return false; return NULL;
} }
struct wlr_drm_plane *plane = conn->crtc->cursor; struct wlr_drm_plane *plane = conn->crtc->cursor;
if (!plane) { if (!plane) {
return false; return NULL;
} }
if (conn->backend->parent) { if (conn->backend->parent) {
return &conn->backend->mgpu_formats; return &conn->backend->mgpu_formats;