summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-02 07:34:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-02 07:34:58 -0400
commit6c0a925fd6de88f2d7ed20051cbadbaf39eddc01 (patch)
tree9910f239af431019ceda9b0848108ac35f7b7b83 /examples
parent5b21b68299ceb33d42a8b76669ceeefe5c099825 (diff)
downloadpango-6c0a925fd6de88f2d7ed20051cbadbaf39eddc01.tar.gz
examples: Avoid deprecated api
Diffstat (limited to 'examples')
-rw-r--r--examples/pangowin32tobmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c
index b657744f..15e473ec 100644
--- a/examples/pangowin32tobmp.c
+++ b/examples/pangowin32tobmp.c
@@ -81,7 +81,7 @@ int main (int argc, char **argv)
* force initialization of built-in engines, otherwise
* the rendering get's really fast - too fast to work :-(
*/
- context = pango_win32_get_context ();
+ context = pango_font_map_create_context (pango_win32_font_map_for_display ());
if (argc == 1) /* No arguments given */
{
@@ -208,7 +208,6 @@ int main (int argc, char **argv)
glyphs = pango_glyph_string_new ();
item = pango_item_new ();
- item->analysis.shape_engine = pango_font_find_shaper (font, lang, s[0]);
item->analysis.font = g_object_ref (font);
pango_shape ( s, sizeof(s), &(item->analysis), glyphs);