diff options
author | nyorain <nyorain@gmail.com> | 2017-06-19 21:22:42 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2017-06-19 21:22:42 +0200 |
commit | e65ca967f9f025748ce0710a09450ce05c5a36dd (patch) | |
tree | 79a78aadee4de5e16f9e4d67510463e628a95909 /example/pointer.c | |
parent | 10526de444b58ab4959d086538845303a06acfc1 (diff) | |
parent | 41b5294013cdf054e9dd49ef83ca6fee74f769a4 (diff) |
Merge branch 'master' into wayland-backend
Diffstat (limited to 'example/pointer.c')
-rw-r--r-- | example/pointer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |