diff options
author | emersion <contact@emersion.fr> | 2018-03-26 19:13:13 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-26 19:13:13 -0400 |
commit | adf4fb08dde2fa3e981213dd6a8c97de1f93c110 (patch) | |
tree | 97dcf2ad621552035626c1c60b84ab5b09700ca7 /include/wlr/util | |
parent | 3bda7e2ef8db955bb56e9dbf700974de06a2836b (diff) | |
parent | 891610081fe1a8279fbe50d548bb6d42074aaae1 (diff) |
Merge branch 'master' into texture-redesign
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 7883af97..c0fe6063 100644 --- a/include/wlr/util/region.h +++ b/include/wlr/util/region.h @@ -26,4 +26,11 @@ void wlr_region_transform(pixman_region32_t *dst, pixman_region32_t *src, void wlr_region_expand(pixman_region32_t *dst, pixman_region32_t *src, int distance); +/* + * Builds the smallest possible region that contains the region rotated about + * the point (ox, oy). + */ +void wlr_region_rotated_bounds(pixman_region32_t *dst, pixman_region32_t *src, + float rotation, int ox, int oy); + #endif |