Re: [AD] possible bug in draw_sprite_h_flip C version while clipping |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
diff attached, all the flip routines now clip properly. with regards, Deepak T(coolbool@xxxxxxxxxx) Sven's message : You are right, now I see what you mean. The clipping code clips as if the sprite was not to be drawn filpped. So if the left part of the destination area is clipped away, then the right part of the sprite will be drawn flipped instead of the left (but to the correct destination area). Moreover, it looks like draw_sprite_v_flip() and draw_sprite_vh_flip() have the same bug. Your solution looks good, would you like to do the same to draw_sprite_v_flip() and draw_sprite_vh_flip() and send a patch? (Just copy the original cspr.h to cspr.h.old, modify cspr.h as you wish, and run "diff -u cspr.h.old cspr.h".) Thank you, -- Sven Sandberg svsa1977@xxxxxxxxxx home.student.uu.se/svsa1977
Attachment:
cspr.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |