Skip to content

Commit

Permalink
Filters return tuples now, not colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Dec 24, 2007
1 parent 5120af1 commit cfb2a57
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 220 deletions.
4 changes: 2 additions & 2 deletions builtins.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ bound <tt>l</tt> and the upper bound <tt>u</tt>, otherwise 0."
(set result (make (?T 1) 0))))

(defbuiltin "__origVal" origValXY (rgba 4) ((p (xy 2)) (frame (nil 1)) (drawable (image 1)))
(let ((c (orig-val (nth 0 p) (nth 1 p) (nth 0 drawable) (nth 0 frame))))
(set result (make (rgba 4) (red c) (green c) (blue c) (alpha c)))))
(let ((t (orig-val (nth 0 p) (nth 1 p) (nth 0 drawable) (nth 0 frame))))
(set result (make (rgba 4) (tuple-nth t 0) (tuple-nth t 1) (tuple-nth t 2) (tuple-nth t 3)))))

;;; colors

Expand Down
Loading

0 comments on commit cfb2a57

Please sign in to comment.