backends: Add argument for best scale on MetaCursorSprite::prepare-at

Instead of letting implementations poke backend internals from various
places, give that information right away.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
Carlos Garnacho
2020-07-10 12:25:12 +02:00
committed by Marge Bot
parent 7a2a2445c3
commit e721fde259
6 changed files with 58 additions and 49 deletions

View File

@ -81,6 +81,7 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
static void
cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
float best_scale,
int x,
int y,
MetaWaylandCursorSurface *cursor_surface)