mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
util/region: forbid "shrinking" a region with wlr_region_expand()
The logic isn't correct.
This commit is contained in:
parent
32fc23a383
commit
8f58c060fd
2 changed files with 4 additions and 2 deletions
|
|
@ -111,6 +111,8 @@ void wlr_region_transform(pixman_region32_t *dst, const pixman_region32_t *src,
|
|||
|
||||
void wlr_region_expand(pixman_region32_t *dst, const pixman_region32_t *src,
|
||||
int distance) {
|
||||
assert(distance >= 0);
|
||||
|
||||
if (distance == 0) {
|
||||
pixman_region32_copy(dst, src);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue