[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Tue, Apr 24, 2001 at 05:25:20PM +0100, Laurence Withers wrote:
> In reply to Peter Wang <tjaden@xxxxxxxxxx>:
> [major snippage]
> >since we might be changing
> >`set_gfx_mode' in the near future. (how near? ;-)
>
> I did look at rewriting it a few days ago, but I didn't understand a bit
> of code. Please could somebody take a look at allegro/src/graphics.c,
> lines 386-387? I think there is a bug there, but I honestly don't have
> the time to check up on it.
It's not a bug -- `vram_bitmap_list' is a linked list of video
bitmaps, which need to be destroyed when a graphics mode is
closed. The lines:
while (vram_bitmap_list)
destroy_bitmap(vram_bitmap_list->bmp);
just keep destroying the head element of the list until the list
is empty. (`destroy_bitmap' removes the destroyed bitmap from
the list, making `vram_bitmap_list' point to the next bitmap, or
NULL if there are no more.)
George
--
Random project update:
22/06/2000: AllegroGL documentation: http://allegrogl.sourceforge.net/
See under `Documentation' for the AllegroGL Reference Manual in
various formats.