From 085be4cebc6f021d8deb114e7984fdfc49665f40 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 21 May 2009 12:09:16 +0100 Subject: [PATCH] [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. --- clutter/pango/cogl-pango-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/pango/cogl-pango-render.c b/clutter/pango/cogl-pango-render.c index 91bcbe9f1..a3b5e2e39 100644 --- a/clutter/pango/cogl-pango-render.c +++ b/clutter/pango/cogl-pango-render.c @@ -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);