[AD] asm sprite patch |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
I've attached a patch that fixes the "asm draw_sprite et al. don't work with sub-bitmaps" bug listed in the todo file. It simply replaces sprite->w by (sprite->line[1] - sprite->line[0])/bitmap_color_depth(sprite), which gives the right pitch for sub-bitmaps as well as for bitmaps. -- Eric Botcazou ebotcazou@xxxxxxxxxx
Attachment:
asm_sprite.zip
Description: Zip compressed data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |