aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util/region.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-26 18:05:35 -0400
committerGitHub <noreply@github.com>2018-03-26 18:05:35 -0400
commit891610081fe1a8279fbe50d548bb6d42074aaae1 (patch)
tree00d14228db0938f26fb90b2e7ebbeebbbe8722ae /include/wlr/util/region.h
parentb66ab811a675b0ceff72943dc1c0ed1ad2bd46ed (diff)
parent140bc1947623f2e3a89e3b22e18db4eba2ffce4d (diff)
Merge pull request #751 from emersion/rotated-surface-damage
Fix damage tracking for rotated surfaces
Diffstat (limited to 'include/wlr/util/region.h')
-rw-r--r--include/wlr/util/region.h7
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