use get-scaled-client-size and increase dep
This commit is contained in:
parent
c93272f781
commit
94b49e4082
|
@ -60,10 +60,8 @@
|
||||||
|
|
||||||
(define drawer (box void))
|
(define drawer (box void))
|
||||||
(define (paint-canvas c dc)
|
(define (paint-canvas c dc)
|
||||||
((unbox drawer)
|
(define-values (cw ch) (send c get-scaled-client-size))
|
||||||
(send c get-width)
|
((unbox drawer) cw ch dc))
|
||||||
(send c get-height)
|
|
||||||
dc))
|
|
||||||
|
|
||||||
;; (printf "starting at ~v\n" (vector start-x start-y))
|
;; (printf "starting at ~v\n" (vector start-x start-y))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue