Fixing use and documentation of draw-bitmap-section-smooth

This commit is contained in:
Jay McCarthy 2010-11-25 11:47:02 -05:00
parent e081af2aef
commit 68051f845a
2 changed files with 2 additions and 4 deletions

View File

@ -704,13 +704,13 @@
(make-object bitmap% (quotient w 2) (quotient h 2)))]
[mdc (make-object bitmap-dc% bm2)])
(send mdc draw-bitmap-section-smooth bm
0 0 (quotient w 2) (quotient h 2)
0 0
0 0 w h)
(send mdc set-bitmap #f)
(when mbm2
(send mdc set-bitmap mbm2)
(send mdc draw-bitmap-section-smooth (send bm get-loaded-mask)
0 0 (quotient w 2) (quotient h 2)
0 0
0 0 w h)
(send mdc set-bitmap #f)
(send bm2 set-loaded-mask mbm2))

View File

@ -30,8 +30,6 @@ Creates a new memory DC. If @scheme[bitmap] is not @scheme[#f], it is
@defmethod[(draw-bitmap-section-smooth [source (is-a?/c bitmap%)]
[dest-x real?]
[dest-y real?]
[dest-width (and/c real? (not/c negative?))]
[dest-height (and/c real? (not/c negative?))]
[src-x real?]
[src-y real?]
[src-width (and/c real? (not/c negative?))]