summaryrefslogtreecommitdiffstats
path: root/mbbsd/menu.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 22:15:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 22:15:22 +0800
commiteeb8dcb80bb25a2d0261bb2d2cc8583154ea824c (patch)
treef66886d22f40de28541349e9c422e06df6944b01 /mbbsd/menu.c
parent8012c1e5d20cc11944dfa2af02e4779f8409b499 (diff)
downloadpttbbs-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/menu.c')
-rw-r--r--mbbsd/menu.c9
1 files changed, 8 insertions, 1 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)) {