Re: [AD] clipping, sub bitmaps

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


On Mon, 2009-08-17 at 12:52 +0200, Milan Mimica wrote:
> Elias Pschernig wrote:
> > 
> > We do not really have sub-sub-bitmaps right now. If you create a
> > sub-bitmap, this is what happens:
> > 
> > 
> >    if (parent->parent) {
> >       x += parent->xofs;
> >       y += parent->yofs;
> >       parent = parent->parent;
> >    }
> > 
> > So basically, the parent of a sub bitmap always is a real bitmap.
> > 
> > If we want to change this, we will need a function
> > "_al_find_bitmap_parent(bitmap)" which traverses all the parents to find
> > the real one (to be used wherever "bitmap->parent" is used right now).
> 
> Or just replace that "if" with a "while".

Here where it's created, yes. But I was talking of the other functions
taking bitmap parameters who will have to be made aware of it :P

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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