Ignore:
Timestamp:
11/08/2007 05:57:54 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui-new
revision id:
dsowen@fugue88.ws-20071108055754-sphaa0ww9903cndr
Message:

Use the BOUND and BOUNDF from DSO-UTIL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/flat-menu.lisp

    r19 r39  
    5555  (redraw-selected menu nil))
    5656
    57 (defun bound (a b c)
    58   (min (max a b) c))
    59 
    6057(defmethod (setf selected) :around (i (menu menu))
    61   (call-next-method (bound 0 i (1- (length (slot-value menu 'entries)))) menu))
     58  (call-next-method (bound i 0 (1- (length (slot-value menu 'entries)))) menu))
    6259
    6360(defmethod (setf selected) :after (i (menu menu))
Note: See TracChangeset for help on using the changeset viewer.