wlr_cursor: Don't multiply hotspot by scale^2

We are already multiplying in output_cursor_set_texture
master
Alexander Orzechowski 2 years ago committed by Simon Ser
parent 2c30500ce1
commit 18139f4d87

@ -389,8 +389,8 @@ static void output_cursor_output_commit_surface(
assert(output_cursor->surface != NULL); assert(output_cursor->surface != NULL);
struct wlr_texture *texture = wlr_surface_get_texture(surface); struct wlr_texture *texture = wlr_surface_get_texture(surface);
int32_t hotspot_x = output_cursor->surface_hotspot.x * output->scale; int32_t hotspot_x = output_cursor->surface_hotspot.x;
int32_t hotspot_y = output_cursor->surface_hotspot.y * output->scale; int32_t hotspot_y = output_cursor->surface_hotspot.y;
output_cursor_set_texture(output_cursor->output_cursor, texture, false, output_cursor_set_texture(output_cursor->output_cursor, texture, false,
surface->current.scale, surface->current.transform, surface->current.scale, surface->current.transform,

Loading…
Cancel
Save