61a92a78cd
The interface to RegionInit(): RegionInit (RegionPtr pReg, BoxPtr rect, int size); is very confusing because it doesn't take a list of boxes, it takes *one* box, but if that box is NULL, it initializes an empty region with 'size' rectangles preallocated. Most callers of this function were correctly passing either NULL or just one box, but there were three confused cases, where the code seems to expect a region to be created from a list of boxes. This patch adds a new function RegionInitBoxes() and fixes those instances to call that instead. And yes, the pixman function to initialize a region from a list of boxes is called init_rects() because pixman is also awesome. V2: Make RegionInitBoxes() return a Bool indicating whether the call succeeded, and fix the callers to check this return value. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Søren Sandmann <ssp@redhat.com> |
||
---|---|---|
.. | ||
exa_accel.c | ||
exa_classic.c | ||
exa_driver.c | ||
exa_glyphs.c | ||
exa_migration_classic.c | ||
exa_migration_mixed.c | ||
exa_mixed.c | ||
exa_offscreen.c | ||
exa_priv.h | ||
exa_render.c | ||
exa_unaccel.c | ||
exa.c | ||
exa.h | ||
Makefile.am |