Re: [AD] clipping, sub bitmaps |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
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". -- Milan Mimica http://sparklet.sf.net
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |