aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index f442103..c0a3e2f 100644
--- a/dat.h
+++ b/dat.h
@@ -236,8 +236,9 @@ struct Menulist
Mlist;
char *title;
Rectangle r, sr; /* content and scroll rects */
+ int maxvis; /* max amount of visible entries */
int high; /* [-1,nitems) where -1 is none */
- int off; /* entry offset ∈ [0, nitems-Maxvisitems] */
+ int off; /* entry offset ∈ [0, nitems-maxvis] */
void (*add)(Menulist*, int, char*);
void (*clear)(Menulist*);