Re: [AD] minor issues

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


Milan Mimica wrote:
memset(bmp->line[0], 0, bitmap_color_depth(bmp) / 8 * 800 * 600);

sure, it's:
memset(bmp->line[0], 0, bitmap_color_depth(bmp) / CHAR_BITS * bmp->w * bmp->h);


--
Milan Mimica
http://www.nista-pametno.da.ru






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