Bug 335676 - Text not rendered properly/at all when scrolling, patch by Pawel Chmielowski, r=vladimir

This commit is contained in:
martijn.martijn%gmail.com 2006-06-23 22:21:23 +00:00
Родитель 96247a70b3
Коммит 6f2962a62f
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -586,8 +586,9 @@ DrawCairoGlyphs(gfxContext* ctx,
int num_invalid_glyphs = 0;
for (gint i = 0; i < aGlyphs->num_glyphs; ++i) {
PangoGlyphInfo* info = &aGlyphs->glyphs[i];
// 0x10000000 is PANGO_{CAIRO,XFT,FT,WIN32}_UNKNOWN_FLAG
if (info->glyph & 0x10000000) {
// Skip glyph when it is PANGO_GLYPH_EMPTY (0x0FFFFFFF) or has
// PANGO_GLYPH_UNKNOWN_FLAG (0x10000000) bit set.
if ((info->glyph & 0x10000000) || info->glyph == 0x0FFFFFFF) {
// XXX we should to render a slug for the invalid glyph instead of just skipping it
num_invalid_glyphs++;
} else {