Re: [AD] Problem with remove_mouse() and video bitmaps. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2005-12-30, Stef <stapostol@xxxxxxxxxx> wrote:
> >>we could at least place a check against NULL
> >>in draw_mouse().
> >
> >That requires checking if a bitmap being destroyed by destroy_bitmap()
> >has a mouse cursor shown on it and setting a pointer to NULL if that is
> >so.
>
> Nope. The destroy_bitmap does not care whether anything else is using the
> bitmap. It just destroys the bitmap (as it does now), sets the pointer to
> NULL (which is the only thing we add) and returns.
Set _which_ pointer to NULL?
Peter