fix GC blit resizing
Conversion of a bitmap to the specified size was broken and made more broken by recent changes.
This commit is contained in:
parent
4453642e52
commit
4f3216f55a
|
@ -203,8 +203,8 @@
|
||||||
(= (send on get-width) w)
|
(= (send on get-width) w)
|
||||||
(= (send on get-height) h))
|
(= (send on get-height) h))
|
||||||
on
|
on
|
||||||
(let ([bm (make-object bitmap% w h #:backing-scale (send on get-backing-scale))])
|
(let ([bm (make-object bitmap% w h #f #f (send on get-backing-scale))])
|
||||||
(let ([dc (make-object bitmap-dc% on)])
|
(let ([dc (make-object bitmap-dc% bm)])
|
||||||
(send dc draw-bitmap-section on 0 0 on-x on-y w h)
|
(send dc draw-bitmap-section on 0 0 on-x on-y w h)
|
||||||
(send dc set-bitmap #f)
|
(send dc set-bitmap #f)
|
||||||
bm))))
|
bm))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user