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