Re: [AD] rotate_sprite_v_flip doc diff

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


Eric Botcazou:
>> The naming of these functions is driving me crazy. :) It appears
>> rotate_sprite_v_flip(), unlike draw_sprite_v_flip(), actually flips about
>> the vertical axis, so I think the attached diff should be applied.

> I don't think so.  Neither the code nor examples/exsprite (add 'angle=0;' 
> line 173 to see it) show that.  rotate_sprite_v_flip() flips vertically for 
> me, that is reverses the y-axis.

You're right, of course. I knew I should have double-checked outside my game
code. Sorry for wasting your time. However, I think there is still room for a
doc patch. My confusion stemmed from thinking the sprite is rotated before it's
flipped and not vice versa. If you get this wrong, itofix(64) and itofix(192)
will give results as you would expect from a mythical rotate_sprite_h_flip().

Kind regards,
Daniel Schlyder
--
http://bitblaze.com/

Attachment: doc_rotate_sprite_v_flip.diff
Description: Binary data



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