diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-03 15:54:53 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-03 15:54:53 +0800 |
commit | f953897b997b26b8069f920b3eb85eef5cd84ccb (patch) | |
tree | 2e3d13a8315e903bd329f9dfb507014e8dbe15f5 /mbbsd/board.c | |
parent | a2a653b72c1f5c6920f03d13a52b0a2ea3631cb8 (diff) | |
download | pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar.gz pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar.bz2 pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar.lz pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar.xz pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.tar.zst pttbbs-f953897b997b26b8069f920b3eb85eef5cd84ccb.zip |
pmore: warning for **X
board: category color update, thanks to ledia
i'm not sure should we use 16 color or not,
so let's stay in compatible mode first.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2879 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index dcd9dfb5..9b6c0b87 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -461,7 +461,7 @@ make_class_color(char *name) return colorset[(unsigned int) (name[0] + name[1] + - name[2] + name[3]) & 07]; + name[2] + name[3]) & 0x7]; } #define HILIGHT_COLOR ANSI_COLOR(1;36) @@ -501,9 +501,6 @@ show_brdlist(int head, int clsflag, int newflag) } if (brdnum > 0) { boardstat_t *ptr; - char *color[8] = {"", ANSI_COLOR(32), - ANSI_COLOR(33), ANSI_COLOR(36), ANSI_COLOR(34), ANSI_COLOR(1), - ANSI_COLOR(1;32), ANSI_COLOR(1;33)}; char *unread[2] = {ANSI_COLOR(37) " " ANSI_RESET, ANSI_COLOR(1;31) "£¾" ANSI_RESET}; if (IS_LISTING_FAV() && get_data_number(get_current_fav()) == 0){ @@ -574,9 +571,7 @@ show_brdlist(int head, int clsflag, int newflag) ((!(cuser.uflag2 & FAVNOHILIGHT) && getboard(ptr->bid) != NULL))? ANSI_COLOR(1;36) : "", B_BH(ptr)->brdname, - color[(unsigned int) - (B_BH(ptr)->title[1] + B_BH(ptr)->title[2] + - B_BH(ptr)->title[3] + B_BH(ptr)->title[0]) & 07], + make_class_color(B_BH(ptr)->title), B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7); #ifdef USE_COOLDOWN |