exploit record-dc% to keep picts from drawing outside

of their bounding boxes
This commit is contained in:
Robby Findler 2012-05-26 21:37:51 -05:00
parent a55a20f9d9
commit 0456d5e4e5

View File

@ -478,6 +478,7 @@
(define d (dyn pict-descent pict))
(define rdc (new record-dc%))
(send rdc set-smoothing 'aligned)
(send rdc set-clipping-rect 0 0 w h)
(dyn draw-pict pict rdc 0 0)
(define recorded-datum (send rdc get-recorded-datum))
(new pict-snip:pict-snip% [w w] [h h] [d d] [a a] [recorded-datum recorded-datum]))