diff options
author | emersion <contact@emersion.fr> | 2018-01-27 10:43:17 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-27 10:43:17 +0100 |
commit | 7111dd79efb6cccf39866051a92090cfc9ea5c67 (patch) | |
tree | d3e05791ad4341cddbb038840d99b2d4cd5bdae7 /include/wlr | |
parent | a011a1cb075bed2235162f1af7e88d0ee534acad (diff) |
rootston: damage tracking for rotated views
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_box.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_box.h b/include/wlr/types/wlr_box.h index d6cc3509..fc86f0ac 100644 --- a/include/wlr/types/wlr_box.h +++ b/include/wlr/types/wlr_box.h @@ -26,4 +26,10 @@ void wlr_box_transform(const struct wlr_box *box, enum wl_output_transform transform, int width, int height, struct wlr_box *dest); +/** + * Creates the smallest box that contains a rotated box. + */ +void wlr_box_rotated_bounds(const struct wlr_box *box, float rotation, + struct wlr_box *dest); + #endif |