Skip to content

Commit

Permalink
Make the qix demo work by binding FIXNUM-declared variables to NIL
Browse files Browse the repository at this point in the history
Make the qix demo work by binding FIXNUM-declared variables to NIL
Make all the demos work by using OPEN-DEFAULT-DISPLAY under sbcl.

darcs-hash:20030403110037-ed5a3-debd88843cbaa9d4298ee83d0413f32c4468f26e.gz
  • Loading branch information
csr21 committed Apr 3, 2003
1 parent b333045 commit ca5c8c2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions demo/clx-demos.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
(unless *display*
#+:cmu
(multiple-value-setq (*display* *screen*) (ext:open-clx-display))
#-:cmu
#+sbcl
(progn
(setf *display* (xlib::open-default-display))
(setf *screen* (xlib:display-default-screen *display*)))
#-(or cmu sbcl)
(progn
;; Portable method
(setf *display* (xlib:open-display (machine-instance)))
Expand Down Expand Up @@ -241,12 +245,14 @@
(rplaca (qix-buffer h)
(make-array 4 :initial-contents (list x y x y)))))
(rplacd (last histories) histories)
(let (x1 y1 x2 y2 dx1 dy1 dx2 dy2 tem line next-line qix
(gc (xlib:create-gcontext :drawable window
:foreground *white-pixel*
:background *black-pixel*
:line-width 0 :line-style :solid
:function boole-c2)))
(let ((x1 0) (y1 0) (x2 0) (y2 0)
(dx1 0) (dy1 0) (dx2 0) (dy2 0)
tem line next-line qix
(gc (xlib:create-gcontext :drawable window
:foreground *white-pixel*
:background *black-pixel*
:line-width 0 :line-style :solid
:function boole-c2)))
(declare (fixnum x1 y1 x2 y2 dx1 dy1 dx2 dy2))
(dotimes (i duration)
;; Line is the next line in the next qix. Rotate this qix and
Expand Down

0 comments on commit ca5c8c2

Please sign in to comment.