mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
cursor-renderer-native: Fix hw cursor for non-square sprites
wl_shm_buffer_get_width() was used where wl_shm_buffer_get_height() should have used, resulting in only square cursors working. Make rectangular cursors work again. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1099
This commit is contained in:
parent
4b513a31ae
commit
390fd7ddcf
@ -1331,7 +1331,7 @@ realize_cursor_sprite_from_wl_buffer_for_gpu (MetaCursorRenderer *renderer,
|
||||
buffer_data = wl_shm_buffer_get_data (shm_buffer);
|
||||
|
||||
width = wl_shm_buffer_get_width (shm_buffer);
|
||||
height = wl_shm_buffer_get_width (shm_buffer);
|
||||
height = wl_shm_buffer_get_height (shm_buffer);
|
||||
|
||||
switch (wl_shm_buffer_get_format (shm_buffer))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user