mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 16:16:20 -05:00
[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:
parent
bb156970de
commit
085be4cebc
@ -247,7 +247,7 @@ cogl_pango_render_layout_subpixel (PangoLayout *layout,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cogl_push_matrix ();
|
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,
|
_cogl_pango_display_list_render (display_list,
|
||||||
priv->glyph_material,
|
priv->glyph_material,
|
||||||
priv->solid_material);
|
priv->solid_material);
|
||||||
|
Loading…
Reference in New Issue
Block a user