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:
@ -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
|
||||
|
Reference in New Issue
Block a user