Re: [AD] al_convert_bitmap

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


On Sat, 2011-06-11 at 12:11 +0200, Elias Pschernig wrote:
> > And doesn't there need to be a clone_font() if you want to use the
> > same font on multiple displays?
> > 
> 
> Yes, that function is needed I'd say.
> 
> I'll make patches.
> 

Ok, committed changes to SVN adding ALLEGRO_ANY_BITMAP. There were a lot
of borderline cases not really working yet with
al_convert_all_video_bitmaps which are hopefully also fixed now.

The internal lists are supposed to work like this:

- Any bitmap which has the ANY flag should be in the internal conversion
list as long as it is a memory bitmap and removed while it is a video
bitmap, removed/added whenever the type changes.

- Any video bitmap should be in the list of video bitmaps of exactly one
display (either because it was created when the display was active or
because if was transferred when another display was destroyed). This is
how it already was all along.


Still need to fix al_create_ttf_font and make an al_clone_font function.

I also left in al_convert_all_video_bitmaps for now. Can maybe remove it
now or at least rename.

-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





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