mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-13 13:29:44 -05:00
output: fix blurred hw cursors with fractional scaling
The scaling factor was being implicitly cast to an int. Closes: https://github.com/swaywm/sway/issues/4927
This commit is contained in:
parent
d10f8a98ec
commit
5f092c55d1
4 changed files with 4 additions and 4 deletions
|
|
@ -928,7 +928,7 @@ static void output_cursor_update_visible(struct wlr_output_cursor *cursor) {
|
|||
}
|
||||
|
||||
static bool output_cursor_attempt_hardware(struct wlr_output_cursor *cursor) {
|
||||
int32_t scale = cursor->output->scale;
|
||||
float scale = cursor->output->scale;
|
||||
enum wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
||||
struct wlr_texture *texture = cursor->texture;
|
||||
if (cursor->surface != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue