Re: [AD] Problem with remove_mouse() and video bitmaps. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Fri, 2005-12-30 at 15:21 +0200, Stef wrote:
> On Fri, 30 Dec 2005 15:11:51 +0200, Elias Pschernig
> <elias@xxxxxxxxxx> wrote:
>
> >
> > The problem is:
> >
> > destroy_bitmap(screen);
> >
> > void destroy_bitmap(BITMAP *bmp)
> > {
> > ...
> > bmp = NULL
> > }
> >
> > The above won't set screen to NULL.
> >
>
> True, but shouldn't the screen always be valid (while there is a gfx mode
> set)? I think that the problem was with video bitmaps, which the above
> code would cover.
>
Yes, "screen" was just an example for any bitmap (the mouse might be
drawn to). What we are saying is, you simply can't set the bitmap to
NULL, without some extra construction to keep track of all active bitmap
pointers.
--
Elias Pschernig