diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-12 17:10:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 17:10:11 -0500 |
commit | 855c117efdab06bd232a3f0d6e81d7288a0551ed (patch) | |
tree | ad2aa347b862cc7446a1cc80f5932847e1491fbe /examples/pointer.c | |
parent | a317ecdab8ef8deb184b72db208794daa4c4a3a0 (diff) | |
parent | f8b43940b1a14e78c5365c9c1d17bfc79f523530 (diff) |
Merge pull request #412 from emersion/cursor-scale
Scale cursors on scaled outputs
Diffstat (limited to 'examples/pointer.c')
-rw-r--r-- | examples/pointer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index 1bcd7349..476cc617 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -110,7 +110,7 @@ static void handle_output_add(struct output_state *ostate) { struct wlr_xcursor_image *image = sample->xcursor->images[0]; wlr_cursor_set_image(sample->cursor, image->buffer, image->width, - image->width, image->height, image->hotspot_x, image->hotspot_y); + image->width, image->height, image->hotspot_x, image->hotspot_y, 0); wlr_cursor_warp(sample->cursor, NULL, sample->cursor->x, sample->cursor->y); } @@ -321,7 +321,7 @@ int main(int argc, char *argv[]) { struct wlr_xcursor_image *image = state.xcursor->images[0]; wlr_cursor_set_image(state.cursor, image->buffer, image->width, - image->width, image->height, image->hotspot_x, image->hotspot_y); + image->width, image->height, image->hotspot_x, image->hotspot_y, 0); compositor_init(&compositor); if (!wlr_backend_start(compositor.backend)) { |