| [AD] _al_convert_to_memory_bitmap funny? | 
[ Thread Index | 
Date Index
| More lists.liballeg.org/allegro-developers Archives
] 
Hi, the highlighted line looks a bit weird.
Maybe fix it or add a comment.
    void _al_convert_to_memory_bitmap(ALLEGRO_BITMAP *bitmap)
    {
       ALLEGRO_BITMAP *tmp;
       /* Do nothing if it is a memory bitmap already. */
       if (bitmap->flags & ALLEGRO_MEMORY_BITMAP)
	  return;
       if (bitmap->parent) {
	  _al_vector_find_and_delete(&bitmap->display->bitmaps, &bitmap);
	  //_AL_REALLOC(bitmap, sizeof(ALLEGRO_BITMAP));
	  bitmap->display = NULL;
	  bitmap->flags &= ALLEGRO_MEMORY_BITMAP;
	  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  return;
       }