rootston: fix urxvt damage on HiDPI outputs

util/region: add wlr_region_expand
This commit is contained in:
emersion 2018-01-30 12:01:10 +01:00
parent d498855b9d
commit 2a855e6282
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 40 additions and 0 deletions

View file

@ -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