rename function scale-to-fit to avoid conflict
with newly introduced function with that name
This commit is contained in:
parent
7647e94eee
commit
8ed42e6162
|
@ -55,14 +55,14 @@
|
||||||
(list "dom(" arg ")"))])
|
(list "dom(" arg ")"))])
|
||||||
(t)))
|
(t)))
|
||||||
|
|
||||||
(define (scale-to-fit p)
|
(define (scale-to-fit/m p)
|
||||||
(scale p (min (/ (- 1024 margin margin) (pict-width p))
|
(scale p (min (/ (- 1024 margin margin) (pict-width p))
|
||||||
(/ (- 768 margin margin) (pict-height p)))))
|
(/ (- 768 margin margin) (pict-height p)))))
|
||||||
|
|
||||||
(slide
|
(slide
|
||||||
(with-rewriters
|
(with-rewriters
|
||||||
(λ ()
|
(λ ()
|
||||||
(scale-to-fit
|
(scale-to-fit/m
|
||||||
(ht-append
|
(ht-append
|
||||||
40
|
40
|
||||||
(language->pict list-machine #:nts '(a p ι))
|
(language->pict list-machine #:nts '(a p ι))
|
||||||
|
@ -71,13 +71,13 @@
|
||||||
(slide
|
(slide
|
||||||
(with-rewriters
|
(with-rewriters
|
||||||
(λ ()
|
(λ ()
|
||||||
(scale-to-fit
|
(scale-to-fit/m
|
||||||
(judgment-form->pict check-instr)))))
|
(judgment-form->pict check-instr)))))
|
||||||
|
|
||||||
(slide
|
(slide
|
||||||
(with-rewriters
|
(with-rewriters
|
||||||
(λ ()
|
(λ ()
|
||||||
(scale-to-fit
|
(scale-to-fit/m
|
||||||
(vc-append
|
(vc-append
|
||||||
40
|
40
|
||||||
(judgment-form->pict check-block)
|
(judgment-form->pict check-block)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user