Re: [AD] get_clip()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, Nov 02, 2002 at 10:29:20PM +0100, Eric Botcazou wrote:
> [Follow-up to Elias' patch]
> 
> The attached patch is a reworked version of a long pending patch from Vincent. 
> It adds the get_clip() function that retrieves the clipping rectangle of a 
> bitmap. I agree with Vincent that the function is needed because of the +1 
> tweak on the right and bottom clipping values.

Mine had add_clip too, which I still is very useful. Well, at least, I use
it, so it's useful for me :)
It's handy when you want to:

int a,b,c,d;
get_clip(bitmap,&a,&b,&c,&d);
add_clip(bitmap,e,f,g,h);
/* draw stuff */
set_clip(bitmap,a,b,c,d);


-- 
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/