From a3fa704d1272a56465922cad9d52eb5cabc8ac05 Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 10 Sep 2003 09:00:29 +0000 Subject: code clean up git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1174 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/screen.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'mbbsd/screen.c') diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 1f27dd86..24dffc4d 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.16 2003/06/28 08:42:37 kcwu Exp $ */ +/* $Id$ */ #include "bbs.h" #ifdef SUPPORT_GB @@ -217,11 +217,11 @@ clear() register int i; docls = YEA; - cur_col = cur_ln = roll = downfrom = i = 0; - do { + cur_col = cur_ln = roll = downfrom = 0; + for(i=0; imode = slp->len = slp->oldlen = 0; - } while (++i < scr_lns); + } } void @@ -473,12 +473,7 @@ outmsg(char *msg) { move(b_lines, 0); clrtoeol(); -#ifdef SUPPORT_GB - if (current_font_type == TYPE_GB) - msg = hc_convert_str(msg, HC_BIGtoGB, HC_DO_SINGLE); -#endif - while (*msg) - outc(*msg++); + outs(msg); } void -- cgit v1.2.3