From 5f092c55d1fbd244ceb73adb710aa0ce185a03ee Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 10 Apr 2020 11:04:21 +0200 Subject: 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 --- backend/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 55760015..01da2d2c 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -906,7 +906,7 @@ struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output, } static bool drm_connector_set_cursor(struct wlr_output *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_drm_connector *conn = get_drm_connector_from_output(output); -- cgit v1.2.3