Re: [AD] Zero sized bitmaps

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


Evert Glebbeek wrote:
On Tuesday 23 August 2005 01:10, AJ wrote:

so if bmp->h=1 and i<bmp->h i=0 would be valid, so i would then do line[0][0] and that would crash as there is zero width ?

So why aren't you checking that your second index <bmp->w?


so i can save on an instruction by using a do {} while instead of a while{};





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