use get-scaled-client-size and increase dep

This commit is contained in:
Jay McCarthy 2015-05-20 12:00:33 -04:00
parent 8bf6881805
commit c93272f781
2 changed files with 3 additions and 5 deletions

View File

@ -47,10 +47,8 @@
(define gframe%
(class frame%
(define/override (on-size w h)
(async-channel-put events-ch
(list 'resize
(send c get-width)
(send c get-height)))
(define-values (cw ch) (send c get-scaled-client-size))
(async-channel-put events-ch (list 'resize cw ch))
(refresh!))
(define/augment (on-close)
(async-channel-put events-ch 'close))

View File

@ -2,7 +2,7 @@
(define collection "lux")
(define deps '("draw-lib"
"drracket"
"gui-lib"
["gui-lib" #:version "1.13"]
"htdp-lib"
"pict-lib"
"base"