diff options
author | emersion <contact@emersion.fr> | 2018-01-25 21:54:51 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-25 21:54:51 +0100 |
commit | a98ece68d32031dbd81b0064fad659515fc09f76 (patch) | |
tree | 626792500c3a29cd0cd73583b369ee1c362d70fa /include | |
parent | 4223fbc76330f000a209c0f03426fd3867f21057 (diff) |
util: add docs for wlr_region_scale
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/util/region.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/util/region.h b/include/wlr/util/region.h index 416adbf2..e268436b 100644 --- a/include/wlr/util/region.h +++ b/include/wlr/util/region.h @@ -3,6 +3,12 @@ #include <pixman.h> +/** + * Scales a region, ie. multiplies all its coordinates by `scale`. + * + * The resulting coordinates are rounded up or down so that the new region is + * at least as big as the original one. + */ void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src, float scale); |