[w3m-dev 03732] Re: scroll() is slow ?

* configure (use_raw_scroll): added
	(config.h) use_raw_scroll
* config.h.dist (USE_RAW_SCROLL): added
* display.c (displayBuffer): ifdef USE_RAW_SCROLL
* proto.h (scroll): ifdef USE_RAW_SCROLL
	(rscroll): ditto
	(need_clrtoeol): if 0
	(terms.c): if 0 need_clrtoeol
	(scroll_raw): ifdef USE_RAW_SCROLL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2003-02-06 17:15:04 +00:00
parent 254eeb195f
commit fbc26e9c4b
6 changed files with 43 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: terms.c,v 1.43 2003/01/10 16:16:45 ukai Exp $ */
/* $Id: terms.c,v 1.44 2003/02/06 17:15:16 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -398,7 +398,10 @@ void clear(), wrap(), touch_line(), touch_column(int);
void switch_wchar(FILE *);
void switch_ascii(FILE *);
#endif
void need_clrtoeol(void), clrtoeol(void); /* conflicts with curs_clear(3)? */
#if 0
void need_clrtoeol(void);
#endif
void clrtoeol(void); /* conflicts with curs_clear(3)? */
int write1(char);
@@ -1444,6 +1447,7 @@ clear(void)
CurrentMode = C_ASCII;
}
#ifdef USE_RAW_SCROLL
static void
scroll_raw(void)
{ /* raw scroll */
@@ -1535,6 +1539,7 @@ rscroll(int n)
}
}
}
#endif
#if 0
void