Re: [AD] sub bitmap patch

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


This is an example of one of the allegro "restrictions" that i wouldn't mind
to
see dissapearing =)

Subbitmaps are (actually could be without the restriction =) quite useful
for
example for gui "windows", but disallowing them to clip by the top-left side
make them a lot less useful IMHO.

In fact, I don't see this a very big issue since if we break it, fair, it
was already broken! =) and if change the behaivour even better.

Oh well, as long as it gets fixed in allegro 5.x im happy =)

> On Thu, Nov 08, 2001 at 12:55:04PM +0100, Eric Botcazou wrote:
> >> Try creating a sub bitmap with negative offsets (eg overlapping with
the
> >> top left corner of the parent bitmap) and you'll see what the bug is.
>
> form the create_sub_bitmap description in allegro.txt:
>      screen, the x position must be a multiple of four. The sub-bitmap
>      width and height can extend beyond the right and bottom edges of
>      the parent (they will be clipped), but the origin point must lie
>                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      within the parent region.
>      ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> While removing this restriction is quite useful, I don't think this counts
as
> a bug, and hence must wait till after 4.0.
>
> --
>
> Martijn Versteegh
>



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