wlr_cursor: Don't multiply hotspot by scale^2

We are already multiplying in output_cursor_set_texture
This commit is contained in:
Alexander Orzechowski 2023-05-08 03:31:46 -04:00 committed by Simon Ser
parent 2c30500ce1
commit 18139f4d87

View file

@ -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,