[cogl-pango-render] Fix the positioning when calling cogl_pango_render_layout

When a position is given to cogl_pango_render_layout_subpixel it
translates the GL matrix by the coordinates. However it was not
dividing by PANGO_SCALE so the coordinates were completely wrong.
This commit is contained in:
Neil Roberts 2009-05-21 12:09:16 +01:00
parent bb156970de
commit 085be4cebc

View File

@ -247,7 +247,7 @@ cogl_pango_render_layout_subpixel (PangoLayout *layout,
}
cogl_push_matrix ();
cogl_translate (x, y, 0);
cogl_translate (x / (gfloat) PANGO_SCALE, y / (gfloat) PANGO_SCALE, 0);
_cogl_pango_display_list_render (display_list,
priv->glyph_material,
priv->solid_material);