diff options
author | emersion <contact@emersion.fr> | 2018-01-26 22:11:09 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-26 22:11:09 +0100 |
commit | ece2c1e4e200192bde19a2590b5a31f244e09524 (patch) | |
tree | d8b2bb12b076bf73b70c21b2283ded34fedaee86 /include/wlr/util | |
parent | a98ece68d32031dbd81b0064fad659515fc09f76 (diff) |
Damage tracking for transformed outputs
Diffstat (limited to 'include/wlr/util')
-rw-r--r-- | include/wlr/util/region.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/util/region.h b/include/wlr/util/region.h index e268436b..5d2b37e1 100644 --- a/include/wlr/util/region.h +++ b/include/wlr/util/region.h @@ -2,6 +2,7 @@ #define WLR_UTIL_REGION_H #include <pixman.h> +#include <wayland-server.h> /** * Scales a region, ie. multiplies all its coordinates by `scale`. @@ -12,4 +13,10 @@ void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src, float scale); +/** + * Applies a transform to a region inside a box of size `width` x `height`. + */ +void wlr_region_transform(pixman_region32_t *dst, pixman_region32_t *src, + enum wl_output_transform transform, int width, int height); + #endif |