]> git.eshelyaron.com Git - emacs.git/commitdiff
(clear_glyph_row): Add debug code in #if 0.
authorGerd Moellmann <gerd@gnu.org>
Wed, 5 Jul 2000 11:39:35 +0000 (11:39 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 5 Jul 2000 11:39:35 +0000 (11:39 +0000)
src/dispnew.c

index c0176a59abc8ac806033bbebdf99be6583f2d57b..233507fd2cbb17e3134b14ad6b6affe7bd3fa900 100644 (file)
@@ -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
 }