Combining masks
Hi,
Running this code
(gp:with-graphics-mask (pane (list 100 100 50 50))
(gp:with-graphics-mask (pane (list 0 0 500 500))
(gp:draw-rectangle pane 0 0 500 500 :filled t :foreground :red)))
results in a 500x500 rectangle being drawn. Apparently, the second mask overrides the first, while I would have expected them to be combined so that both masks restrict the drawing area.
Is this a bug in GP, or is it expected behavior? In the latter case, is there any workaround?
Regards
Erik
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html