From fbc26e9c4b8c8b09fdc307b6eb0d248fc243f354 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 6 Feb 2003 17:15:04 +0000 Subject: [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 --- display.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'display.c') diff --git a/display.c b/display.c index 6b94993..e0c3319 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.62 2003/02/05 16:43:57 ukai Exp $ */ +/* $Id: display.c,v 1.63 2003/02/06 17:15:11 ukai Exp $ */ #include #include "fm.h" @@ -417,6 +417,7 @@ displayBuffer(Buffer *buf, int mode) } if (mode == B_FORCE_REDRAW || mode == B_SCROLL || mode == B_REDRAW_IMAGE || cline != buf->topLine || ccolumn != buf->currentColumn) { +#ifdef USE_RAW_SCROLL if ( #ifdef USE_IMAGE !(activeImage && displayImage && draw_image_flag) && @@ -439,7 +440,9 @@ displayBuffer(Buffer *buf, int mode) } redrawNLine(buf, n); } - else { + else +#endif + { #ifdef USE_IMAGE if (activeImage && (mode == B_REDRAW_IMAGE || -- cgit v1.2.3