Re: [AD] possible bug in draw_sprite_h_flip C version while clipping

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


Cool Bool wrote:
> take a source image say 100*100 and call draw_sprite_h_flip(buffer,
> bmp1, -50, 0);

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




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