exploit record-dc% to keep picts from drawing outside
of their bounding boxes
This commit is contained in:
parent
a55a20f9d9
commit
0456d5e4e5
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user