fix draw-bitmap result to match docs
This commit is contained in:
parent
ed8aa132de
commit
dedb207a86
|
@ -147,7 +147,8 @@
|
||||||
[sy (if (zero? src-h) 1.0 (/ dest-h src-h))])
|
[sy (if (zero? src-h) 1.0 (/ dest-h src-h))])
|
||||||
(let ([t (get-transformation)])
|
(let ([t (get-transformation)])
|
||||||
(scale sx sy)
|
(scale sx sy)
|
||||||
(draw-bitmap-section src (/ dest-x sx) (/ dest-y sy) src-x src-y src-w src-h style color mask)
|
(begin0
|
||||||
(set-transformation t))))))
|
(draw-bitmap-section src (/ dest-x sx) (/ dest-y sy) src-x src-y src-w src-h style color mask)
|
||||||
|
(set-transformation t)))))))
|
||||||
|
|
||||||
(install-bitmap-dc-class! bitmap-dc%)
|
(install-bitmap-dc-class! bitmap-dc%)
|
||||||
|
|
|
@ -1594,7 +1594,8 @@
|
||||||
(stamp-pattern src a-src-x a-src-y)])
|
(stamp-pattern src a-src-x a-src-y)])
|
||||||
(when clip-mask
|
(when clip-mask
|
||||||
(cairo_restore cr))
|
(cairo_restore cr))
|
||||||
(flush-cr))))
|
(flush-cr)))
|
||||||
|
#t)
|
||||||
|
|
||||||
(define/private (bitmap-to-b&w-bitmap src src-x src-y src-w src-h style color mask)
|
(define/private (bitmap-to-b&w-bitmap src src-x src-y src-w src-h style color mask)
|
||||||
(let* ([bm-w (inexact->exact (ceiling src-w))]
|
(let* ([bm-w (inexact->exact (ceiling src-w))]
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user