diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-08 03:31:46 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-08 09:17:22 +0000 |
commit | 18139f4d87a42d64a03af26aa750ff5e59ec6c89 (patch) | |
tree | 17dfbbd85739c9bbe46e08c807de55219b872d2c | |
parent | 2c30500ce19b06c4825fbf362b6fc719f7782334 (diff) |
wlr_cursor: Don't multiply hotspot by scale^2
We are already multiplying in output_cursor_set_texture
-rw-r--r-- | types/wlr_cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 7c82c20d..fb267402 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -389,8 +389,8 @@ static void output_cursor_output_commit_surface( assert(output_cursor->surface != NULL); struct wlr_texture *texture = wlr_surface_get_texture(surface); - int32_t hotspot_x = output_cursor->surface_hotspot.x * output->scale; - int32_t hotspot_y = output_cursor->surface_hotspot.y * output->scale; + int32_t hotspot_x = output_cursor->surface_hotspot.x; + int32_t hotspot_y = output_cursor->surface_hotspot.y; output_cursor_set_texture(output_cursor->output_cursor, texture, false, surface->current.scale, surface->current.transform, |