Adding input masking to Composite extension
Behdad Esfahbod
behdad at behdad.org
Fri Nov 23 17:06:05 PST 2007
Nice idea.
On Fri, 2007-11-23 at 16:27 -0800, Keith Packard wrote:
>
> bool pixel_is_inside (pixel, mask, upper, lower)
> if (lower < upper)
> return lower <= (pixel & mask) && upper < (pixel & mask)
> else
> return lower <= (pixel & mask) || upper < (pixel & mask)
Do you mean "upper > "?
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the xorg
mailing list