* clutter/pango/pangoclutter-glyph-cache.c

(pango_clutter_glyph_cache_set): When creating a new band, make
	sure the texture is wide enough for the glyph, not just tall
	enough.
This commit is contained in:
Neil Roberts 2008-06-02 16:02:31 +00:00
parent 8bdb98736d
commit dd1a669911
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-06-02 Neil Roberts <neil@o-hand.com>
* clutter/pango/pangoclutter-glyph-cache.c
(pango_clutter_glyph_cache_set): When creating a new band, make
sure the texture is wide enough for the glyph, not just tall
enough.
2008-06-02 Neil Roberts <neil@o-hand.com>
Applied 'final patch' from bug #874

View File

@ -269,7 +269,8 @@ pango_clutter_glyph_cache_set (PangoClutterGlyphCache *cache,
/* Look for a texture with enough vertical space left for a band
with this height */
for (texture = cache->textures;
texture && texture->space_remaining < band_height;
texture && (texture->space_remaining < band_height
|| texture->texture_size < width);
texture = texture->next);
if (texture == NULL)
{
@ -281,7 +282,8 @@ pango_clutter_glyph_cache_set (PangoClutterGlyphCache *cache,
texture = g_slice_new (PangoClutterGlyphCacheTexture);
texture->texture_size = MIN_TEXTURE_SIZE;
while (texture->texture_size < band_height)
while (texture->texture_size < band_height
|| texture->texture_size < width)
texture->texture_size *= 2;
/* Allocate an empty buffer to clear the texture */