comparison src/dispnew.c @ 109660:85236524c2a3

Fix redisplay bugs due to uninitialized glyphs in frame glyph pool. dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs. msdos.c (IT_display_cursor): Log cursor position on termscript. .gdbinit (pgx): Display the avoid_cursor_p flag.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 06 Aug 2010 17:54:06 +0300
parents 228a5fa4eda0
children 43a4dcd16d73
comparison
equal deleted inserted replaced
109652:eb720d8ea1c6 109660:85236524c2a3
1526 if (needed > pool->nglyphs) 1526 if (needed > pool->nglyphs)
1527 { 1527 {
1528 int size = needed * sizeof (struct glyph); 1528 int size = needed * sizeof (struct glyph);
1529 1529
1530 if (pool->glyphs) 1530 if (pool->glyphs)
1531 pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size); 1531 {
1532 pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size);
1533 memset (pool->glyphs + pool->nglyphs, 0,
1534 size - pool->nglyphs * sizeof (struct glyph));
1535 }
1532 else 1536 else
1533 { 1537 {
1534 pool->glyphs = (struct glyph *) xmalloc (size); 1538 pool->glyphs = (struct glyph *) xmalloc (size);
1535 memset (pool->glyphs, 0, size); 1539 memset (pool->glyphs, 0, size);
1536 } 1540 }