Fix software cursors on scaled outputs

There was an issue where it would only work within the boundaries of the
unscaled resolution.
This commit is contained in:
Drew DeVault 2017-11-04 11:47:34 -04:00
parent 6d8e1abfc0
commit 2f6cfe4057
2 changed files with 3 additions and 2 deletions

View file

@ -249,7 +249,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) {
wlr_output_init(&output->wlr_output, &backend->backend, &output_impl);
struct wlr_output *wlr_output = &output->wlr_output;
wlr_output_update_size(wlr_output, 640, 480);
wlr_output_update_size(wlr_output, 1280, 720);
strncpy(wlr_output->make, "wayland", sizeof(wlr_output->make));
strncpy(wlr_output->model, "wayland", sizeof(wlr_output->model));
snprintf(wlr_output->name, sizeof(wlr_output->name), "WL-%d",