Skip to content

Commit

Permalink
use chars in blit code
Browse files Browse the repository at this point in the history
  • Loading branch information
stylewarning committed Mar 9, 2013
1 parent f57bbb4 commit 08f4362
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions blit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@
(let* ((contents (parens-box-contents box))
(h (height contents)))
(if (= h 1)
(blit canvas (glue "(" contents ")") x y)
(blit canvas (glue #\( contents #\)) x y)
(progn
(blit canvas contents (+ x 2) y)
(blit canvas "/" x y)
(blit canvas "\\" (+ x (width contents) 3) y)
(loop :for i :from 1 :to (1- h)
(blit canvas #\/ x y)
(blit canvas #\\ (+ x (width contents) 3) y)
(loop :for i :from 1 :below h
:do (progn
(blit canvas "|" x (+ y i))
(blit canvas "|" (+ x (width contents) 3) (+ y i))))
(blit canvas "\\" x (+ y (- h 1)))
(blit canvas "/" (+ x (width contents) 3) (+ y (- h 1)))))))
(blit canvas #\| x (+ y i))
(blit canvas #\| (+ x (width contents) 3) (+ y i))))
(blit canvas #\\ x (+ y (- h 1)))
(blit canvas #\/ (+ x (width contents) 3) (+ y (- h 1)))))))

0 comments on commit 08f4362

Please sign in to comment.