[AD] image loading flags

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


ALLEGRO_KEEP_FORMAT and ALLEGRO_NO_PREMULTIPLIED_ALPHA do not belong
with the bitmap flags.  Luckily the former was never implemented.
Now we have ALLEGRO_KEEP_INDEX as well.

I suggest adding:

  ALLEGRO_BITMAP *al_load_bitmap_flags(const char *filename, int flags);

For backwards compatibility al_load_bitmap() may continue to
respect ALLEGRO_NO_PREMULTIPLIED_ALPHA in the new_bitmap_flags,
but issue a warning.  We can consider removing the behaviour later.

Peter




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