From 6c0a925fd6de88f2d7ed20051cbadbaf39eddc01 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 2 Aug 2019 07:34:04 -0400 Subject: examples: Avoid deprecated api --- examples/pangowin32tobmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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); -- cgit v1.2.1