diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 22:15:22 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 22:15:22 +0800 |
commit | eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c (patch) | |
tree | f66886d22f40de28541349e9c422e06df6944b01 /mbbsd | |
parent | 8012c1e5d20cc11944dfa2af02e4779f8409b499 (diff) | |
download | pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar.gz pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar.bz2 pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar.lz pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar.xz pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.tar.zst pttbbs-eeb8dcb80bb25a2d0261bb2d2cc8583154ea824c.zip |
- finetune (rollback) menu and userlist layout
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4207 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/menu.c | 9 | ||||
-rw-r--r-- | mbbsd/talk.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index fe59ac33..9b857b6e 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -257,7 +257,11 @@ movie(int cmdmode) move(1, 0); clrtoln(1 + FILMROW); /* 清掉上次的 */ +#ifdef LARGETERM_CENTER_MENU out_lines(SHM->notes[i], 11, (t_columns - 80)/2); /* 只印11行就好 */ +#else + out_lines(SHM->notes[i], 11, 0); /* 只印11行就好 */ +#endif outs(reset_color); } @@ -275,9 +279,12 @@ show_menu(int moviemode, const commands_t * p) movie(moviemode); - // update menu column [fixed because most items are designed in this way) + // seems not everyone likes the menu in center. +#ifdef LARGETERM_CENTER_MENU + // update menu column [fixed const because most items are designed in this way) menu_column = (t_columns-40)/2; menu_row = 12 + (t_lines-24)/2; +#endif move(menu_row, 0); while ((s = p[n].desc)) { diff --git a/mbbsd/talk.c b/mbbsd/talk.c index f07965fd..75dd12e0 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2230,7 +2230,7 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, // userlist column definition static const VCOL ulist_coldef[ULISTCOLS] = { - {NULL, 8, VCOL_MAXW, -1, {0, 1}}, // " 編號" + {NULL, 8, 9, 0, {0, 1}}, // "編號" 因為游標靠這所以也不該長太大 {NULL, 2, 2, 0, {0, 0, 1}}, // "P" (pager, no border) {NULL, IDLEN+1, IDLEN+3}, // "代號" {NULL, 17,25, 2}, // "暱稱", sizeof(userec_t::nickname) |