Re: [AD] fbcon driver color depth

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


On 2007-01-05, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> On Friday 05 January 2007 23:30, Peter Wang wrote:
> > So set_gfx_mode can succeed with a different colour depth to what was
> > set with set_color_depth?
> 
> Isn't it similar to what happens in windowed mode? Although Allegro's 
> backbuffer has the requested colour depth, the actual window has the 
> desktop colour depth. If this is similar it should be fine.

The user doesn't need to be aware of the different colour depths in the
windowed case since Allegro will automatically convert as necessary.

> As an aside, does desktop_color_depth() return meaningful information for 
> the fbcon driver? It probably could and should if it doesn't.

Just checking the source, it doesn't.  Actually that's part of the
system driver as the desktop_color_depth is queried before a gfx driver
is installed.

Peter





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