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))
|
(define mx (mask cc cw cr ch x))
|
||||||
(match-define (raart mw mh m!) mx)
|
(match-define (raart mw mh m!) mx)
|
||||||
(raart* cw ch
|
(raart* cw ch
|
||||||
(λ (okay? d r c)
|
(λ (okay? d dr dc)
|
||||||
(m! (λ (w h r c)
|
(m! (λ (w h r c)
|
||||||
(okay? w h (- r cr) (- c cc)))
|
(okay? w h (- r cr) (- c cc)))
|
||||||
(λ (r c ch)
|
(λ (r c ch)
|
||||||
(d (- r cr) (- c cc) ch))
|
(d (+ dr (- r cr)) (+ dc (- c cc)) ch))
|
||||||
r c))))
|
0 0))))
|
||||||
|
|
||||||
(define (if-drawn f x)
|
(define (if-drawn f x)
|
||||||
(match-define (raart w h !) x)
|
(match-define (raart w h !) x)
|
||||||
|
|
Loading…
Reference in New Issue