From b64e7e88bfb8ab048dc3e599bcd900b9844fdd5f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 11 Apr 2023 17:38:19 +0200 Subject: output: add output_cursor_set_texture() --- include/types/wlr_output.h | 4 ++++ include/wlr/types/wlr_output.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index 5f75eb60..5c1d8fab 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -13,4 +13,8 @@ void output_clear_back_buffer(struct wlr_output *output); bool output_ensure_buffer(struct wlr_output *output, const struct wlr_output_state *state, bool *new_back_buffer); +bool output_cursor_set_texture(struct wlr_output_cursor *cursor, + struct wlr_texture *texture, bool own_texture, float scale, + enum wl_output_transform transform, int32_t hotspot_x, int32_t hotspot_y); + #endif diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index dbf7524a..88dbffb9 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -44,6 +44,7 @@ struct wlr_output_cursor { // only when using a software cursor without a surface struct wlr_texture *texture; + bool own_texture; // only when using a cursor surface struct wlr_surface *surface; -- cgit v1.2.3