Re: [AD] Documentation update

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


On 2005-04-27, spoofer255@xxxxxxxxxx wrote:
> > Or just say that between set_color_depth() and the next
> > successful call to set_gfx_mode() graphic operations are
> > undefined/invalid.
> 
> No, all graphic operations (blit, draw_sprite, line, ...) use
> bitmap_color_depth to find out which color depth are bitmaps they
> are using, so they are unaffected by set_color_depth.

Maybe we should change then get_color_depth's implementation?

/* get_color_depth:
 *  Returns the current color depth of the screen or the user requested
 *  color depth if we aren't yet in graphic mode.
 */
int get_color_depth(void)
{
   if (screen)
      return bitmap_color_depth(screen);
   else
      return _color_depth;
}





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