dc-for-text-size

This commit is contained in:
Jay McCarthy 2014-11-19 23:04:33 -05:00
parent 7204b221ee
commit 7a4ce679cd
1 changed files with 14 additions and 13 deletions

View File

@ -25,6 +25,7 @@
(super-output!
(gui/val-g c)
(λ (w h dc)
(parameterize ([dc-for-text-size dc])
(send dc set-background "black")
(send dc clear)
(define sp
@ -37,7 +38,7 @@
(define top (/ (- h sph) 2))
(send dc set-brush "white" 'solid)
(send dc draw-rectangle left top spw sph)
(draw-pict sp dc left top))))
(draw-pict sp dc left top)))))
(define (chaos-label! c l)
(super-label! (gui/val-g c) l))
(define (chaos-swap! c t)