util: add docs for wlr_region_scale

This commit is contained in:
emersion 2018-01-25 21:54:51 +01:00
parent 4223fbc763
commit a98ece68d3
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -3,6 +3,12 @@
#include <pixman.h> #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, void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src,
float scale); float scale);