fix dimensions of cached image bitmap
original commit: cf344b9926edda82906d692b9bed0421c82abb7d
This commit is contained in:
parent
d428edc7ed
commit
8294ffe8d4
|
@ -318,8 +318,8 @@ has been moved out).
|
|||
|
||||
(define/override (draw dc x y left top right bottom dx dy draw-caret?)
|
||||
(unless cached-bitmap
|
||||
(set! cached-bitmap (make-bitmap (+ (inexact->exact (round (bb-bottom bb))) 1)
|
||||
(+ (inexact->exact (round (bb-right bb))) 1)))
|
||||
(set! cached-bitmap (make-bitmap (+ (inexact->exact (round (bb-right bb))) 1)
|
||||
(+ (inexact->exact (round (bb-bottom bb))) 1)))
|
||||
(define bdc (make-object bitmap-dc% cached-bitmap))
|
||||
(send bdc erase)
|
||||
(render-image this bdc 0 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user