From 2a855e62824653f7634617a2c19d88ba1c650911 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 30 Jan 2018 12:01:10 +0100 Subject: rootston: fix urxvt damage on HiDPI outputs util/region: add wlr_region_expand --- include/wlr/util/region.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') 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 -- cgit v1.2.3