diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-06 17:15:04 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-06 17:15:04 +0000 |
commit | fbc26e9c4b8c8b09fdc307b6eb0d248fc243f354 (patch) | |
tree | be000941b4e8b94086e51e3515c20bbb6e24f4ab /display.c | |
parent | fix typo (diff) | |
download | w3m-fbc26e9c4b8c8b09fdc307b6eb0d248fc243f354.tar.gz w3m-fbc26e9c4b8c8b09fdc307b6eb0d248fc243f354.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | display.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 <signal.h> #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 || |