diff options
author | emersion <contact@emersion.fr> | 2018-01-30 12:01:10 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-30 12:01:10 +0100 |
commit | 2a855e62824653f7634617a2c19d88ba1c650911 (patch) | |
tree | 4ca2aa91f44d8742c10ede61e000e8b57620f632 /include/wlr | |
parent | d498855b9d6f8d7f0ccde42a026fb0619d99b8a2 (diff) |
rootston: fix urxvt damage on HiDPI outputs
util/region: add wlr_region_expand
Diffstat (limited to 'include/wlr')
-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 5d2b37e1..7883af97 100644 --- a/include/wlr/util/region.h +++ b/include/wlr/util/region.h @@ -19,4 +19,11 @@ void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src, void wlr_region_transform(pixman_region32_t *dst, pixman_region32_t *src, enum wl_output_transform transform, int width, int height); +/** + * Expands the region of `distance`. If `distance` is negative, it shrinks the + * region. + */ +void wlr_region_expand(pixman_region32_t *dst, pixman_region32_t *src, + int distance); + #endif |