(let ((widgets (fix-drawing-widgets drawing)))
(if (null? widgets)
(%trace ";spinning ended\n")
- (loop (modulo (fix:1+ frame) frames)))))))))
+ (loop (modulo (fix:1+ frame) frames)))))))
+ (list 'spin drawing)))
(define (start-blinking drawing)
(let ((thread (create-blinker drawing)))
(cdr cursor.widgets)))
(demo-drawing-cursor-inks drawing))
(loop)
- (%trace ";blinking ended\n"))))))
+ (%trace ";blinking ended\n"))))
+ (list 'blink drawing)))
\f
(define %trace? #f)
(else
(handle event)))))
(%trace "thread done")
- (stop-current-thread))))
+ (stop-current-thread))
+ 'swat))
(define (handle-event key canvas x y)
(or (let* ((handlers (swat-canvas-swat-handlers canvas))