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
[EMAIL PROTECTED]    Toll Free: 1 877 359 4866
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to