svn: r17210
This commit is contained in:
Robby Findler 2009-12-05 18:35:25 +00:00
parent 3f2e1c4b20
commit 1a8bca736f
2 changed files with 5 additions and 1 deletions

View File

@ -407,7 +407,7 @@ plt/collects/tests/mzscheme/htdp-image.ss
(cond
[(string=? str "")
(let-values ([(tw th) (get-text-size size "dummyX")])
(rectangle 0 th 'solid 'black))]
(put-pinhole (rectangle 0 th 'solid 'black) 0 0))]
[else
(let ([color (make-color% color-in)])
(let-values ([(tw th) (get-text-size size str)])

View File

@ -830,6 +830,10 @@
'ph-text
(list (pinhole-x (text "10" 10 'red))
(pinhole-y (text "10" 10 'red))))
(test (list 0 0)
'ph-text
(list (pinhole-x (text "" 10 'red))
(pinhole-y (text "" 10 'red))))
(test (list 3 3)
'ph-add-line