[AD] clipping rectangle

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


Just an idea, but IMHO it would be nice if we could make the clipping rectangle
exclusive (i.e. al_set_clip(bmp,0,0,10,10); would mean draw on 0,0 - 9,9 inclusive.

The current system can be quit confusing. It is , for example, impossible to
set the clipping rectangle to only the upper left pixel, because set_clip(bmp,0,0,0,0)
turns off clipping. Which is something which caused me many mysterious crashes when
I was writing WHAM.

On a side note I'd rather much like the rect(fill) and clipping functions to all
follow the blit semantics ( x,y,w,h) instead of the 2 different conventions twhcih are in
use at the moment. But it will probably lead to too much old programs breaking
if we change that, so it probably not worth changing.





-- 

Martijn Versteegh



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