Re: [AD] New clipping API

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


On 2003-11-23, Eric <ebotcazou@xxxxxxxxxx> wrote:
> >     e.g. set_clip_rect(bmp, 1, 1, 0, 0); /* disable drawing on bmp */
> 
> Yes, an example is indeed much needed.
> 
> > The first thing I would have tried was set_clip_rect(bmp,0,0,-1,-1) but
> > that wouldn't work.
> 
> Why?

Sorry, you're right, it would work.  Still, I don't think we should be
encouraging people to pass out-of-bitmap coordinates to set_clip_rect().
AFAIK the documentation doesn't say what happens in that case.

-- 
王浩禎




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