Re: [AD] al_get_display_format

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


On Wed, 2009-03-11 at 08:28 -0600, Trent Gamblin wrote:
> This function has to be changed somehow I think. Relying on _al_deduce_color_format alone won't work. In some cases it
> will return ALLEGRO_PIXEL_FORMAT_ANY which isn't very useful. I think under drivers that support it it should return
> whatever format the driver chose upon display creation. In the case of Direct3D it does more then just call "deduce"
> when choosing a format. So should we bring back display->format?

When is that function needed? I assume in most cases what you want is:

al_get_bitmap_format(al_get_backbuffer())

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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