Re: [AD] fix bug in al_create_display

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


On 2006-07-23, Peter Wang <tjaden@xxxxxxxxxx> wrote:
> al_create_display() crashes for AL_UPDATE_SYSTEM_BUFFER or
> AL_UPDATE_DOUBLE_BUFFER.  The number of pages is 1, so this call is out
> of bounds:
> 
>     al_show_video_bitmap(new_display, new_display->page[1]);
> 
> I also simplified it to remove some unnecessary loops since the number
> of pages is 1.

Committed.





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