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

* clutter/clutter-texture.c:
        Initial attempt at handling resizing/tranformed source textures.

        * clutter/pango/pangoclutter-render.c: (draw_glyph):
        Guards against freetype returning NULL bitmaps and
        thus causing device by zeros on NVIDIA drivers. (see ml)
This commit is contained in:
Matthew Allum
2008-02-06 14:39:04 +00:00
parent 49b189ecbb
commit ccc58efad4
3 changed files with 105 additions and 1 deletions

View File

@ -351,6 +351,13 @@ draw_glyph (PangoRenderer *renderer_,
Glyph bm;
font_render_glyph (&bm, font, glyph);
if (bm.width < 1 || bm.height < 1 || bm.bitmap == NULL)
{
x += g->left;
y -= g->top;
return;
}
if (g)
g->generation = tc_generation;
else