From e9609e9adf2883a1cf2b766adf5363f25f8f0833 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 19 Jun 2017 14:02:25 -0400 Subject: Allocate framebuffers for hardware cursors Still doesn't fix cursors though --- example/pointer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'example/pointer.c') diff --git a/example/pointer.c b/example/pointer.c index d97d253e..ddb665a1 100644 --- a/example/pointer.c +++ b/example/pointer.c @@ -94,8 +94,9 @@ static void handle_pointer_axis(struct pointer_state *pstate, static void handle_output_add(struct output_state *ostate) { struct wlr_output *wlr_output = ostate->output; + int width = 16, height = 16; if (!wlr_output_set_cursor(wlr_output, cat_tex.pixel_data, - cat_tex.width * 4, cat_tex.width, cat_tex.height)) { + width * 4, width, height)) { fprintf(stderr, "Failed to set cursor\n"); return; } -- cgit v1.2.3