File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 718718 (/ current-page (max 1 (sub1 slide-count))))
719719 (values 0 0 )))
720720
721- (define (show-time dc w h)
722- (let* ([left (- w GAUGE-WIDTH)]
723- [top (- h GAUGE-HEIGHT)]
724- [b (send dc get-brush)]
725- [p (send dc get-pen)])
726- (send dc set-pen black-pen)
727- (send dc set-brush (if start-time gray-brush clear-brush))
728- (send dc draw-rectangle left top GAUGE-WIDTH GAUGE-HEIGHT)
729- (when start-time
730- (let-values ([(duration distance) (calc-progress)])
731- (send dc set-brush (if (< distance duration)
732- red-brush
733- green-brush))
734- (send dc draw-rectangle left top (floor (* GAUGE-WIDTH distance)) GAUGE-HEIGHT)
735- (send dc set-brush clear-brush)
736- (send dc draw-rectangle left top (floor (* GAUGE-WIDTH duration)) GAUGE-HEIGHT)))
737- (send dc set-pen p)
738- (send dc set-brush b)))
739-
740721 (define c%
741722 (class canvas%
742723 (inherit get-dc get-client-size make-bitmap
You can’t perform that action at this time.
0 commit comments