Re: [AD] get_color_depth

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


> Here's a patch to add a get_color_depth function. This just returns
> _color_depth. I needed it for AllegroGL, before the screen gets initialized
> (which rules out bitmap_color_depth(screen)).

If that's the only reason, there is no need for such a function because _color_depth is a
platform-independent internal that is exported (see lib/mingw32/allegro.def) so you can
safely reference it after including allegro/internal/aintern.h in your code.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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