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:
Simon Ser 2020-04-10 11:04:21 +02:00 committed by Drew DeVault
parent d10f8a98ec
commit 5f092c55d1
4 changed files with 4 additions and 4 deletions

View file

@ -309,7 +309,7 @@ static void output_rollback(struct wlr_output *wlr_output) {
}
static bool output_set_cursor(struct wlr_output *wlr_output,
struct wlr_texture *texture, int32_t scale,
struct wlr_texture *texture, float scale,
enum wl_output_transform transform,
int32_t hotspot_x, int32_t hotspot_y, bool update_texture) {
struct wlr_wl_output *output = get_wl_output_from_output(wlr_output);