how does X clip ?
Peter Harris
peter.harris at hummingbird.com
Sat Nov 29 09:39:12 PST 2008
My Own Linux wrote:
> Assume I have a Window boundary of (0,0) to (200,200)
>
> If I give a command to XDrawLine or anything else from coordinate
> (100,100) - 400,400)
>
> How does X clip the pixel lying outside the Window boundary (the algorithm) ?
The clip region calculation algorithm is implemented in:
http://cgit.freedesktop.org/xorg/xserver/tree/mi/mivaltree.c
Actually clipping to that region is left up to the driver most of the
time, and may be implemented in hardware.
Peter Harris
--
Hummingbird Connectivity - A Division of Open Text
Peter Harris http://connectivity.hummingbird.com
Research and Development Phone: +1 905 762 6001
peter.harris at hummingbird.com Toll Free: 1 877 359 4866
More information about the xorg
mailing list