Re: [AD] some small patches

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


Eric Botcazou wrote:


Ok, but is that safe in the first place ? Can cl safely point to an
out-of-bound location in memory ? Did you check that the asm code doesn't
unconditionally write the first pixel ?


The assembly code assumes that the proper checking was done prior to calling it. So if the clip region is invalid or w <= 0 or h <= 0, you shouldn't call the assembly code.

You have to devise another way to implement the feature.




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