mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
* 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:
parent
8bdb98736d
commit
dd1a669911
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user