[PATCH] Make RegionInit() and RegionCreate() take just a box and no size
sandmann at cs.au.dk
Mon May 9 08:18:29 PDT 2011
Daniel Stone <daniel at fooishbar.org> writes:
> On Mon, May 02, 2011 at 07:44:15AM -0400, Søren Sandmann wrote:
>> The interface to these function was was very confusing since it gave
>> the impression that they initialized the region from a list of boxes,
>> which they didn't.
>> This patch changes the interface to take just one box and fixes all
>> the callers accordingly.
> Why not just change all RegionInit(region, box, 1) calls to use
> RegionInitBoxes(region, box, 1), and add a RegionCreateBoxes() or
Advantage of adding a new function are that that it will automatically
catch cases where "0" is currently being passed for the number of boxes,
and people who haven't paid attention won't be tempted to create new
More information about the xorg-devel