Re: [AD] get_clip()

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 03 November 2002 09:31, Eric Botcazou wrote:
[snip]
> > void get clip(BITMAP *bitmap, int *rx, int *ry, int *rw, int *rh);
> >     Get the clipping rectangle of a bitmap.
>
> What does it return when clipping is turned off ?

Why not add another parameter:
void get_clip(BITMAP* bmp, int* rx, int* ry, int* rw, int* rh, 
  int* enabled);

> Moreover, I think we shoud devise a way to specify an "empty"
> clipping rectangle (for which cl = cr and ct = cb) so that all
> drawing operations are silenced, provided that it doesn't require an
> extensive rework of all the drawing routines of the library.

w = 0 or h = 0 should be sufficient, right?

Bye for now,
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9xZqZUdhclgSmRuoRAokjAJ4k57OHMIewK/yQuXwMPeYFsQDWwACdGXGA
C4JCBjF4cKyzc61mb8wu9PE=
=2tfB
-----END PGP SIGNATURE-----



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