Re: [AD] Documentation update

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


Grzegorz Adam Hankiewicz wrote:

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?

No. get_color_depth() makes perfect sense at the moment, even if it's not so useful. The documentation should be updated to make it clear what it really does, and suggest bitmap_color_depth(screen) if that's what the user actually wants.

Peter





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