Re: [AD] DGA 2.0 driver completed

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



Bertrand Coconnier wrote:
> 
> BTW can anyone can explain me why
> 
>     r=getr_depth(bitmap_color_depth(bmp), c);
>     g=getg_depth(bitmap_color_depth(bmp), c);
>     b=getb_depth(bitmap_color_depth(bmp), c);
> 
> works fine while
> 
>     int coldepth = bitmap_color_depth(bmp);
>     r=getr_depth(coldepth, c);
>     g=getg_depth(coldepth, c);
>     b=getb_depth(coldepth, c);
> 
> gives a segmentation fault ????

The two listing are identical IIRC...The bug is surely elsewhere.
What else did you change?
I'll give it a try tomorrow in the MSVC debugger, see what comes up.

--

- Robert J Ohannessian



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