aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-10 11:04:21 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-10 15:10:12 +0200
commit5f092c55d1fbd244ceb73adb710aa0ce185a03ee (patch)
tree097dbc50ed7b795dc6e2251430469589aa6219e4 /include/wlr/interfaces
parentd10f8a98ec171791cd81de807e1c400af25b1e2b (diff)
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
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r--include/wlr/interfaces/wlr_output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index 1641ab2d..34b3e675 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -16,7 +16,7 @@
struct wlr_output_impl {
bool (*set_cursor)(struct wlr_output *output, struct wlr_texture *texture,
- int32_t scale, enum wl_output_transform transform,
+ float scale, enum wl_output_transform transform,
int32_t hotspot_x, int32_t hotspot_y, bool update_texture);
bool (*move_cursor)(struct wlr_output *output, int x, int y);
void (*destroy)(struct wlr_output *output);