Re: [AD] all draw_sprite routines work really bad with sub-bitmaps

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


On 10 Jul 2001, David A. Capello <davidcapello@xxxxxxxxxx> wrote:
> At least that it's not my error, the functions draw_sprite,
> draw_sprite_h_flip, draw_sprite_v_flip, and draw_sprite_vh_flip
> work bad with sub-bitmaps.

I tried the test back to 3.9.32, so I guess the problem's been
around for a while.

> The test program that I send, makes test of these functions in several
> resolutions, the most curious thing that 320x240x8 is the only resolution
> that all works well.

The problem is easier to see if you comment out the line that writes
"sub bitmap" to the screen.

I took a look at the assembly (the problem doesn't exist in the C
version), and I guess that %esi (which points to the sprite data) is
being advanced by the subbitmap's width, rather than the subbitmap's
parent's width.  (But I don't know assembly, so I was just reading
comments and guessing :-P)



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