fix region set-poly
This commit is contained in:
parent
f13b569b75
commit
9765f3e584
|
@ -226,12 +226,12 @@
|
|||
(let ([p (new dc-path%)])
|
||||
(let ([i (car pts)])
|
||||
(if (pair? i)
|
||||
(send p move-to (car i) (cdr i))
|
||||
(send p move-to (point-x i) (point-y i))))
|
||||
(send p move-to (+ x (car i)) (+ y (cdr i)))
|
||||
(send p move-to (+ x (point-x i)) (+ y (point-y i)))))
|
||||
(for ([i (in-list (cdr pts))])
|
||||
(if (pair? i)
|
||||
(send p line-to (car i) (cdr i))
|
||||
(send p line-to (point-x i) (point-y i))))
|
||||
(send p line-to (+ x (car i)) (+ y (cdr i)))
|
||||
(send p line-to (+ x (point-x i)) (+ y (point-y i)))))
|
||||
(send p close)
|
||||
(when matrix (send p transform matrix))
|
||||
(set! paths (list (cons p fill-style))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user