Skip to content

Commit

Permalink
Need to export default-load-render. Make sure to funcall LOAD-FUNCTIO…
Browse files Browse the repository at this point in the history
…N in DO-STRING-RENDER because the input may not be a symbol.
  • Loading branch information
rpav committed Jan 16, 2012
1 parent 7bbe526 commit 07163f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/render.lisp
Expand Up @@ -19,7 +19,8 @@ for instance, within the [`DO-STRING-RENDER`](#DO-STRING-RENDER) loop."
(get-loaded-advance face vertical-p)
(ft-glyphslot-bitmap-left glyphslot)
(ft-glyphslot-bitmap-top glyphslot))))


(export 'default-load-render)

(defmacro do-string-render ((face string bitmap-var x-var y-var
&optional (direction :left-right)
Expand Down Expand Up @@ -53,7 +54,7 @@ details."
do
(let (,bitmap-var ,advance ,left ,top)
(multiple-value-setq (,bitmap-var ,advance ,left ,top)
(,load-function ,face ,c1 ,vertical-p))
(funcall ,load-function ,face ,c1 ,vertical-p))
,(unless (eq load-function 'default-load-render)
`(unless ,bitmap-var
(multiple-value-setq (,bitmap-var ,advance ,left ,top)
Expand Down

0 comments on commit 07163f3

Please sign in to comment.