From b54ef3372d5c6f01b97b26cf449617122a628e8a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Feb 2021 19:34:02 +0100 Subject: render: use DRM formats in wlr_renderer_read_pixels --- backend/x11/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/x11') diff --git a/backend/x11/output.c b/backend/x11/output.c index ea60d80b..788be957 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -427,7 +427,7 @@ static bool output_cursor_to_picture(struct wlr_x11_output *output, wlr_renderer_end(x11->renderer); bool result = wlr_renderer_read_pixels( - x11->renderer, WL_SHM_FORMAT_ARGB8888, NULL, + x11->renderer, DRM_FORMAT_ARGB8888, NULL, width * 4, width, height, 0, 0, 0, 0, data); -- cgit v1.2.3