Bug in draw-circle using transformation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
McCLIM |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Report from Paul Werkowski
affects mcclim
status confirmed
importance medium
tag transformation draw-circle*
done
(in-package :clim-user)
;;; In Lispworks CLIM, this program draws an arc (counter-clockwise)
;;; from red dot to blue dot.
;;; In McCLIM, xlib:draw-arc throws a type error,
;;; 7.85398 is not of type (satisfies xlib:anglep)
;;; Changing start angle (as) to zero gets past that error, but the arc
;;; is going in the wrong direction (clockwise) from red dot.
(define-
()
(:panes
(p0 :application
(lambda (f p)
(declare (ignore f))
(with-translation (p 10 150)
(with-scaling (p 1 -1)
(let* ((as (/ pi 8))
;; Arc center
;; Where the arc should start
;; Where the arc should end
:width 200 :height 200))
(:layouts
(default p0)))
(defun testme ()
(run-
(make-