2008-02-07 Matthew Allum <mallum@openedhand.com>

* clutter/pango/pangoclutter-render.c:
        Warn if requested glyph is too big for underlying texture cache.
        (see #666)
This commit is contained in:
Matthew Allum 2008-02-07 10:42:22 +00:00
parent 3185947520
commit b1615f01a4
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-02-07 Matthew Allum <mallum@openedhand.com>
* clutter/pango/pangoclutter-render.c:
Warn if requested glyph is too big for underlying texture cache.
(see #666)
2008-02-07 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c: (texture_upload_data):

View File

@ -78,8 +78,6 @@ tc_clear ()
first_texture = next;
}
printf("freeing textures\n");
++tc_generation;
}
@ -358,6 +356,12 @@ draw_glyph (PangoRenderer *renderer_,
return;
}
if (bm.height > TC_HEIGHT)
{
g_warning ("%s: Glyph too large for cache, increase TC_HEIGHT",
G_STRLOC);
}
if (g)
g->generation = tc_generation;
else