diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2007-07-24 22:50:21 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2007-07-24 22:50:21 -0400 |
commit | fc2f1c2d4c0aa08b055c73bd379d6975181eb0f6 (patch) | |
tree | 370f851d184ec92f644163022ba76cd172917297 /src/GridText.c | |
parent | 387b9cbf38dddc3adbb811e03345576e35df3725 (diff) | |
download | lynx-snapshots-fc2f1c2d4c0aa08b055c73bd379d6975181eb0f6.tar.gz |
snapshot of project "lynx", label v2-8-7dev_5c
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/GridText.c b/src/GridText.c index 489c5ce8..c0dcdfb5 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -1,5 +1,5 @@ /* - * $LynxId: GridText.c,v 1.140 2007/05/13 20:42:37 Takeshi.Hataguchi Exp $ + * $LynxId: GridText.c,v 1.141 2007/07/22 23:04:06 tom Exp $ * * Character grid hypertext object * =============================== @@ -50,8 +50,7 @@ #ifdef USE_COLOR_STYLE #include <AttrList.h> #include <LYHash.h> - -unsigned int cached_styles[CACHEH][CACHEW]; +#include <LYStyle.h> #endif @@ -81,18 +80,6 @@ unsigned int cached_styles[CACHEH][CACHEW]; static void HText_trimHightext(HText *text, BOOLEAN final, int stop_before); -#ifdef USE_COLOR_STYLE -static void LynxResetScreenCache(void) -{ - int i, j; - - for (i = 1; (i < CACHEH && i <= display_lines); i++) { - for (j = 0; j < CACHEW; j++) - cached_styles[i][j] = 0; - } -} -#endif /* USE_COLOR_STYLE */ - struct _HTStream { /* only know it as object */ const HTStreamClass *isa; /* ... */ @@ -2097,7 +2084,7 @@ static void display_page(HText *text, line_number != text->first_lineno_last_disp_partial || line_number > text->last_lineno_last_disp_partial) #endif /* DISP_PARTIAL */ - LynxResetScreenCache(); + ResetCachedStyles(); #endif /* USE_COLOR_STYLE */ #ifdef DISP_PARTIAL |