From d56853adebe198192edd768492e228862cf56f21 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 28 Jan 2002 21:47:42 +0000 Subject: [PATCH] Over-all menu height was also hard-coded (to 22). --- src/uifc/uifcd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/uifc/uifcd.c b/src/uifc/uifcd.c index 2da6e7c7e1..c4e88fd4d3 100644 --- a/src/uifc/uifcd.c +++ b/src/uifc/uifcd.c @@ -222,7 +222,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar scrollpos=0; if(i>height) scrollpos=i-height; - ret=dialog_menu(app_title, title, 22, width, height, cnt, it, str, &i, &scrollpos); + ret=dialog_menu(app_title, title, height+8, width, height, cnt, it, str, &i, &scrollpos); if(ret==1) { ret = -1; *cur = -1; @@ -241,7 +241,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar if(ret==-2) { dialog_clear_norefresh(); if(freecnt-4>0) { - ret=dialog_menu(title, "Insert Where?", 22, width, height, freecnt-4, it, str, 0, 0); + ret=dialog_menu(title, "Insert Where?", height+8, width, height, freecnt-4, it, str, 0, 0); if(ret==0) { *cur=atoi(str)-1; ret=*cur|MSK_INS; @@ -255,7 +255,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar if(ret==-3) { dialog_clear_norefresh(); if(freecnt-4>0) { - ret=dialog_menu(title, "Delete Which?", 22, width, height, freecnt-4, it, str, 0, 0); + ret=dialog_menu(title, "Delete Which?", height+8, width, height, freecnt-4, it, str, 0, 0); if(ret==0) { *cur=atoi(str)-1; ret=*cur|MSK_DEL; @@ -269,7 +269,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar if(ret==-4) { dialog_clear_norefresh(); if(freecnt-4>0) { - ret=dialog_menu(title, "Copy Which?", 22, width, height, freecnt-4, it, str, 0, 0); + ret=dialog_menu(title, "Copy Which?", height+8, width, height, freecnt-4, it, str, 0, 0); if(ret==0) { *cur=atoi(str)-1; ret=*cur|MSK_GET; @@ -283,7 +283,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar if(ret==-5) { dialog_clear_norefresh(); if(freecnt-4>0) { - ret=dialog_menu(title, "Paste Where?", 22, width, height, freecnt-4, it, str, 0, 0); + ret=dialog_menu(title, "Paste Where?", height+8, width, height, freecnt-4, it, str, 0, 0); if(ret==0) { *cur=atoi(str)-1; ret=*cur|MSK_PUT; -- GitLab