diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-27 10:48:24 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-07-17 14:55:22 +0000 |
commit | 000081db1960236d1dadbbd4425ce24ca311e0bd (patch) | |
tree | 6ab33ad5514c3cd94458e88dcf1eceaba799c750 /include | |
parent | 657ca2205ff4d5f70cf294d9b5720acf2eaf76b4 (diff) |
cursor, output: apply viewport to cursor
Instead of passing the scale, pass the source and destination
boxes.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3676
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_output.h | 5 | ||||
-rw-r--r-- | include/wlr/types/wlr_output.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index 22a5c463..1fbe3949 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -15,7 +15,8 @@ bool output_ensure_buffer(struct wlr_output *output, 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); + struct wlr_texture *texture, bool own_texture, const struct wlr_fbox *src_box, + int dst_width, int dst_height, 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 f3ed7c10..1ec22cfe 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -40,7 +40,7 @@ struct wlr_output_cursor { bool enabled; bool visible; uint32_t width, height; - float scale; + struct wlr_fbox src_box; enum wl_output_transform transform; int32_t hotspot_x, hotspot_y; struct wlr_texture *texture; |