Changeset main,59
- Timestamp:
- 11/16/2007 09:23:26 PM (19 years ago)
- branch-nick:
- tui
- revision id:
- dsowen@fugue88.ws-20071116212326-d3d4i97aai8ut91n
- File:
-
- 1 edited
-
main/output.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
main/output.lisp
r52 r59 60 60 (defun add-clipped-string (window y x s) 61 61 ;; TODO: double check for ob1 in OVER. 62 (multiple-value-bind (maxy maxx) (size window) 63 (unless (<= 0 y maxy) (return-from add-clipped-string)) 62 (multiple-value-bind (height width) (size window) 63 (unless (and (<= 0 y (1- height)) 64 (<= x (1- width))) 65 (return-from add-clipped-string)) 64 66 (when (< x 0) 67 (when (>= (- x) (length s)) 68 (return-from add-clipped-string)) 65 69 (setf s (subseq s (- x)) 66 70 x 0)) 67 (let ((over (- (+ x (length s)) maxx)))71 (let ((over (- (+ x (length s)) width))) 68 72 (when (> over 0) 69 73 (setf s (subseq s 0 (- (length s) over)))))
Note: See TracChangeset
for help on using the changeset viewer.
