From: Gerd Moellmann Date: Wed, 5 Jul 2000 11:39:35 +0000 (+0000) Subject: (clear_glyph_row): Add debug code in #if 0. X-Git-Tag: emacs-pretest-21.0.90~2983 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45560b1ad437589024957bcb16211d4c1030907b;p=emacs.git (clear_glyph_row): Add debug code in #if 0. --- 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 }