summaryrefslogtreecommitdiff
path: root/pango/pangoxft-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangoxft-render.c')
-rw-r--r--pango/pangoxft-render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pango/pangoxft-render.c b/pango/pangoxft-render.c
index 44d15ddb..b3647a1f 100644
--- a/pango/pangoxft-render.c
+++ b/pango/pangoxft-render.c
@@ -240,16 +240,14 @@ draw_glyph (PangoRenderer *renderer,
xftrenderer->priv->glyphs = g_array_new (FALSE, FALSE,
sizeof (XftGlyphSpec));
- if (xftrenderer->priv->glyph_font != font)
+ if (xftrenderer->priv->glyph_font != font ||
+ xftrenderer->priv->glyphs->len == MAX_GLYPHS)
{
flush_glyphs (xftrenderer);
xftrenderer->priv->glyph_font = g_object_ref (font);
}
- if (xftrenderer->priv->glyphs->len == MAX_GLYPHS)
- flush_glyphs (xftrenderer);
-
gs.x = pixel_x;
gs.y = pixel_y;
gs.glyph = glyph;