1
0
Fork 0

cursor-renderer/native: Fix cursor sprite CRTC scale

The CRTC cursor sprite scale was incorrectly assumed to be always 1.0
when using the default not-scale-monitor-framebuffer mode. This is
harmless in most cases, as most clients provide HiDPI capable cursors,
but for the ones that didn't, we'd end up drawing their cursors
unscaled, when using the cursor planes.

Fix this by using the "texture scale" which is what is intended for
this.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2477
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2698>
This commit is contained in:
Jonas Ådahl 2022-11-16 16:41:00 +01:00 committed by Marge Bot
parent a1d14a6176
commit 22d08501a8

View file

@ -383,7 +383,7 @@ calculate_cursor_crtc_sprite_scale (MetaCursorSprite *cursor_sprite,
}
else
{
return 1.0;
return meta_cursor_sprite_get_texture_scale (cursor_sprite);
}
}