analysis: CoglPangoRenderer
Remove unused variables.
This commit is contained in:
parent
fbe9e80a07
commit
6e32d0afda
1 changed files with 7 additions and 10 deletions
|
@ -673,21 +673,18 @@ cogl_pango_renderer_draw_glyphs (PangoRenderer *renderer,
|
||||||
gi->glyph);
|
gi->glyph);
|
||||||
|
|
||||||
if (cache_value == NULL)
|
if (cache_value == NULL)
|
||||||
cogl_pango_renderer_draw_box (renderer,
|
{
|
||||||
x,
|
cogl_pango_renderer_draw_box (renderer,
|
||||||
y,
|
x,
|
||||||
PANGO_UNKNOWN_GLYPH_WIDTH,
|
y,
|
||||||
PANGO_UNKNOWN_GLYPH_HEIGHT);
|
PANGO_UNKNOWN_GLYPH_WIDTH,
|
||||||
|
PANGO_UNKNOWN_GLYPH_HEIGHT);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float width, height;
|
|
||||||
|
|
||||||
x += (float)(cache_value->draw_x);
|
x += (float)(cache_value->draw_x);
|
||||||
y += (float)(cache_value->draw_y);
|
y += (float)(cache_value->draw_y);
|
||||||
|
|
||||||
width = x + (float)(cache_value->draw_width);
|
|
||||||
height = y + (float)(cache_value->draw_height);
|
|
||||||
|
|
||||||
cogl_pango_renderer_draw_glyph (priv, cache_value, x, y);
|
cogl_pango_renderer_draw_glyph (priv, cache_value, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue