Re: [AD] update bitmap drawing after addition of transformations

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


On Sat, 2010-08-14 at 10:25 +1000, Peter Wang wrote:
> I found a couple of problems (didn't try to debug them)
> 
> * run ex_subbitmap, 's' for scaling mode
>   When the source subbitmap is outside the parent bitmap there is
>   garbage drawn to the destination, and/or an assertion failure.
> 
> src/bitmap.c:372: al_lock_bitmap_region: Assertion `y+height <= bitmap->h' failed.
> 

Hm, yeah. In SVN, it's broken with the -v parameter instead (trying to
fix that prompted me to make this whole change, to reduce the mess we
have right now first). I hope it will be easy afterwards to fix both
problems by doing the source clipping (which we unwittingly introduced
with the negative sub-bitmap offset) at the single al_draw_bitmap point.

> * run ex_scale, press 's' to use memory source bitmap
>   A black line sometimes flickers across the screen just under the
>   scaled bitmap.
> 

In current SVN, nothing at all is drawn if you use 's' in ex_scale - so
the version with an occasional black line is definitely an improvement
to that :P I have no idea about the cause of either.

-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





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