summaryrefslogtreecommitdiff
path: root/pango/pangowin32-dwrite-fontmap.cpp
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2022-12-16 12:15:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2022-12-23 16:56:32 +0800
commit70ac013544f6ff67079a235ef5c67551654beea5 (patch)
treefbdd911dde73db7369b2e5409783f95d3175ed68 /pango/pangowin32-dwrite-fontmap.cpp
parent8d334a2bf21219418a0c017ba9679544d2d27c2a (diff)
downloadpango-70ac013544f6ff67079a235ef5c67551654beea5.tar.gz
PangoWin32: Avoid initializing DirectWrite repeatedly
Make sure that we use the GPrivate to grab the DirectWrite boilerplate items that we might have setup, and only attempt to initialize DirectWrite if the items have not been previously setup.
Diffstat (limited to 'pango/pangowin32-dwrite-fontmap.cpp')
-rw-r--r--pango/pangowin32-dwrite-fontmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangowin32-dwrite-fontmap.cpp b/pango/pangowin32-dwrite-fontmap.cpp
index a2c03675..8f3a3095 100644
--- a/pango/pangowin32-dwrite-fontmap.cpp
+++ b/pango/pangowin32-dwrite-fontmap.cpp
@@ -424,7 +424,7 @@ pango_win32_font_description_from_logfontw_dwrite (const LOGFONTW *logfontw)
PangoStretch stretch;
PangoWin32DWriteItems *dwrite_items;
- dwrite_items = pango_win32_init_direct_write ();
+ dwrite_items = pango_win32_get_direct_write_items ();
if (dwrite_items == NULL)
return NULL;