diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-12-10 21:40:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-12-10 21:40:17 +0000 |
commit | 93b027c3788b3bc71fb841b743b32c3717aa4398 (patch) | |
tree | 98db285089122ce395499d0f54c511d100d6e1e5 | |
parent | c4bf33e2d874731abbb921d38b22ef2748602b65 (diff) | |
download | pango-93b027c3788b3bc71fb841b743b32c3717aa4398.tar.gz |
Fix problem where the font would get unset after flushing at MAX_GLYPHS.
Fri Dec 10 16:30:40 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-render.c (draw_glyph): Fix problem
where the font would get unset after flushing at MAX_GLYPHS.
(#160978)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/pangoxft-render.c | 6 |
4 files changed, 20 insertions, 4 deletions
@@ -1,3 +1,9 @@ +Fri Dec 10 16:30:40 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pangoxft-render.c (draw_glyph): Fix problem + where the font would get unset after flushing at MAX_GLYPHS. + (#160978) + Thu Dec 2 15:47:44 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.7.0 === diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 733ed367..c0773e14 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +Fri Dec 10 16:30:40 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pangoxft-render.c (draw_glyph): Fix problem + where the font would get unset after flushing at MAX_GLYPHS. + (#160978) + Thu Dec 2 15:47:44 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.7.0 === diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 733ed367..c0773e14 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +Fri Dec 10 16:30:40 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pangoxft-render.c (draw_glyph): Fix problem + where the font would get unset after flushing at MAX_GLYPHS. + (#160978) + Thu Dec 2 15:47:44 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.7.0 === 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; |