From 45560b1ad437589024957bcb16211d4c1030907b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 5 Jul 2000 11:39:35 +0000 Subject: [PATCH] (clear_glyph_row): Add debug code in #if 0. --- src/dispnew.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dispnew.c b/src/dispnew.c index c0176a59abc..233507fd2cb 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -990,6 +990,16 @@ clear_glyph_row (row) row->glyphs[TEXT_AREA] = p[TEXT_AREA]; row->glyphs[RIGHT_MARGIN_AREA] = p[RIGHT_MARGIN_AREA]; row->glyphs[LAST_AREA] = p[LAST_AREA]; + +#if 0 /* At some point, some bit-fields of struct glyph were not set, + which made glyphs unequal when compared with GLYPH_EQUAL_P. + Redisplay outputs such glyphs, and flickering effects were + the result. This also depended on the contents of memory + returned by xmalloc. If flickering happens again, activate + the code below If the flickering is gone with that, chances + are that the flickering has the same reason as here. */ + bzero (p[0], (char *) p[LAST_AREA] - (char *) p[0]); +#endif } -- 2.39.2