mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
wlr_cursor: Don't multiply hotspot by scale^2
We are already multiplying in output_cursor_set_texture
This commit is contained in:
parent
2c30500ce1
commit
18139f4d87
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue