Re: [AD] Problem with remove_mouse() and video bitmaps.

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


@Peter:
> Set _which_ pointer to NULL?

void destroy_bitmap(BITMAP *bitmap)
{
    /* ... */
    bitmap = NULL;
}

That one.

Eh... you realise that it doesn't make any difference if you change that,
right?
I think you're forgetting that C functions take arguments by value, not by
reference.

Evert

Yes you are right, I'm forgetting that. There doesn't seem to be an easy way to really correct the problem, so the documentation change is the only straightforward thing.

I rest my case.




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