gr2 cleanup

original commit: f11e53c68ca1fbc4e11321f97776650b8758ace3
This commit is contained in:
Robby Findler 2010-11-29 07:40:27 -06:00
parent 23ce612716
commit 653df4ac44

View File

@ -72,14 +72,8 @@ instead of this scaling code, we use the dc<%>'s scaling code.
w
h
(* w h NUM-CHANNELS)))
(let* ([bm (make-object bitmap% w h)]
[mask (make-object bitmap% w h)]
[bdc (make-object bitmap-dc% bm)])
(send bdc set-argb-pixels 0 0 w h bytes #f)
(send bdc set-bitmap mask)
(send bdc set-argb-pixels 0 0 w h bytes #t)
(send bdc set-bitmap #f)
(send bm set-loaded-mask mask)
(let* ([bm (make-bitmap w h)])
(send bm set-argb-pixels 0 0 w h bytes)
bm))
(define (flip-bytes bmbytes w h)