changeset 30041:b20d72b7aa4b

(clear_glyph_row): Add debug code in #if 0.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 05 Jul 2000 11:39:35 +0000
parents 7249274abdec
children 22270db6dbeb
files src/dispnew.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Wed Jul 05 11:39:10 2000 +0000
+++ b/src/dispnew.c	Wed Jul 05 11:39:35 2000 +0000
@@ -990,6 +990,16 @@
   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
 }