fix buggy combination of translation and crop
This commit is contained in:
parent
9d82f2f8ad
commit
a4c532fa2c
6
draw.rkt
6
draw.rkt
|
@ -121,12 +121,12 @@
|
|||
(define mx (mask cc cw cr ch x))
|
||||
(match-define (raart mw mh m!) mx)
|
||||
(raart* cw ch
|
||||
(λ (okay? d r c)
|
||||
(λ (okay? d dr dc)
|
||||
(m! (λ (w h r c)
|
||||
(okay? w h (- r cr) (- c cc)))
|
||||
(λ (r c ch)
|
||||
(d (- r cr) (- c cc) ch))
|
||||
r c))))
|
||||
(d (+ dr (- r cr)) (+ dc (- c cc)) ch))
|
||||
0 0))))
|
||||
|
||||
(define (if-drawn f x)
|
||||
(match-define (raart w h !) x)
|
||||
|
|
Loading…
Reference in New Issue