From 55ac7e335aa0ec2c77980fcbc8509a4e71880dcc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 28 Jul 2021 22:56:18 +0200 Subject: [PATCH] backend/drm: fix wrong type for get_cursor_format return values These are bools but should be pointers. --- backend/drm/drm.c | 4 ++-- 1 file 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;